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.

add: warn when malformed files are encountered, those for which we couldn't read tags

Gee Sawra e8f63fb7 36143f25

+7 -2
+7 -2
src/cmd/add.rs
··· 167 167 continue; 168 168 } 169 169 170 - let tags = lofty::read_from_path(p.clone()) 171 - .with_context(|| format!("could not read tags from {}", p.clone()))?; 170 + let tags = match lofty::read_from_path(p.clone()) { 171 + Ok(t) => t, 172 + Err(e) => { 173 + log::warn!("could not read tags from {}: {}", p.clone(), e); 174 + continue; 175 + } 176 + }; 172 177 173 178 let p_path = std::path::PathBuf::from(p.clone()); 174 179 let p_path = p_path.parent().unwrap();