mirror of
https://github.com/agersant/polaris
synced 2025-03-02 06:17: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()));
|
let song_tags = song_path.map(|p| SongTags::read(p.as_path()));
|
||||||
if let Some(Ok(t)) = song_tags {
|
if let Some(Ok(t)) = song_tags {
|
||||||
|
let artist = t.album_artist.or(t.artist);
|
||||||
Ok(Album {
|
Ok(Album {
|
||||||
album_art: album_art,
|
album_art: album_art,
|
||||||
title: t.album,
|
title: t.album,
|
||||||
year: t.year,
|
year: t.year,
|
||||||
artist: t.album_artist,
|
artist: artist,
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
Ok(Album {
|
Ok(Album {
|
||||||
|
|
Loading…
Add table
Reference in a new issue