A tool to sync music with your favorite devices
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

model: report file name whose tags weren't present or impossible to read

Gee Sawra 2b312d83 e8f63fb7

+4 -4
+4 -4
src/model.rs
··· 120 120 type Error = anyhow::Error; 121 121 122 122 fn try_from(track: RawTrack) -> Result<Self, Self::Error> { 123 - let tags = track 124 - .tags 125 - .primary_tag() 126 - .ok_or(anyhow!("could not read track tags"))?; 123 + let tags = track.tags.primary_tag().ok_or( 124 + anyhow!("could not read track tags") 125 + .context(format!("file path: {}", track.path.clone())), 126 + )?; 127 127 let length = track.tags.properties().duration(); 128 128 let artist = tags.artist().unwrap_or("Uknown Artist".into()).to_string(); 129 129 let title = tags.title().unwrap_or("Unknown Title".into()).to_string();