Fixed a bug where recent albums were not correctly sorted
This commit is contained in:
parent
6564e7d078
commit
1bbeee7f39
2 changed files with 2 additions and 2 deletions
|
@ -285,7 +285,7 @@ impl Builder {
|
||||||
album.year = song.year;
|
album.year = song.year;
|
||||||
}
|
}
|
||||||
|
|
||||||
album.date_added = album.date_added.min(song.date_added);
|
album.date_added = album.date_added.max(song.date_added);
|
||||||
|
|
||||||
if !song.album_artists.is_empty() {
|
if !song.album_artists.is_empty() {
|
||||||
album.artists = song.album_artists.clone();
|
album.artists = song.album_artists.clone();
|
||||||
|
|
|
@ -25,7 +25,7 @@ pub struct Artist {
|
||||||
pub lyricist_credits: HashSet<AlbumKey>,
|
pub lyricist_credits: HashSet<AlbumKey>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone, Default, Serialize, Deserialize)]
|
#[derive(Clone, Debug, Default, Serialize, Deserialize)]
|
||||||
pub struct Album {
|
pub struct Album {
|
||||||
pub name: Option<lasso2::Spur>,
|
pub name: Option<lasso2::Spur>,
|
||||||
pub artwork: Option<PathKey>,
|
pub artwork: Option<PathKey>,
|
||||||
|
|
Loading…
Add table
Reference in a new issue