fix: various album_artists <-> artists mismatches

This commit is contained in:
Deluan
2020-03-26 09:08:53 -04:00
parent 5331732236
commit dcb3b3b5d1
7 changed files with 40 additions and 24 deletions
+2
View File
@@ -121,9 +121,11 @@ func (r *albumRepository) Refresh(ids ...string) error {
}
if al.Compilation {
al.AlbumArtist = consts.VariousArtists
al.AlbumArtistID = consts.VariousArtistsID
}
if al.AlbumArtist == "" {
al.AlbumArtist = al.Artist
al.AlbumArtistID = al.ArtistID
}
al.UpdatedAt = time.Now()
if al.CurrentId != "" {