tidy meta tag handling

This commit is contained in:
Max Bradbury 2021-11-26 00:25:51 +00:00
parent 22d29ccc52
commit 3b9789235d
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ fn yes() -> bool {
fn handle_mp3(file: DirEntry) { fn handle_mp3(file: DirEntry) {
let meta = mp3_metadata::read_from_file(file.path()).unwrap(); let meta = mp3_metadata::read_from_file(file.path()).unwrap();
for tag in meta.tag { if let Some(tag) = meta.tag {
println!("----------------------"); println!("----------------------");
println!("artist: {}", tag.artist.trim()); println!("artist: {}", tag.artist.trim());
println!("album: {}", tag.album.trim()); println!("album: {}", tag.album.trim());