From dace2237c0bb41e0db1acf9881a8dfae002c1d1d Mon Sep 17 00:00:00 2001 From: Antoine Gersant Date: Sat, 1 Oct 2016 16:46:07 -0700 Subject: [PATCH] Fixed a bug where most albums didn't show an artist name --- src/collection.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/collection.rs b/src/collection.rs index e7eeeb5..27f10fe 100644 --- a/src/collection.rs +++ b/src/collection.rs @@ -80,11 +80,12 @@ impl Album { let song_tags = song_path.map(|p| SongTags::read(p.as_path())); if let Some(Ok(t)) = song_tags { + let artist = t.album_artist.or(t.artist); Ok(Album { album_art: album_art, title: t.album, year: t.year, - artist: t.album_artist, + artist: artist, }) } else { Ok(Album {