mirror of
https://github.com/agersant/polaris
synced 2024-12-02 17:49:10 +00:00
Fixed a bug where most albums didn't show an artist name
This commit is contained in:
parent
05110f8b65
commit
dace2237c0
1 changed files with 2 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue