Use AlbumArtist tag even for compilations, when it is specified.

If the tracks' AlbumArtists are different, then use "Various Artists"
This commit is contained in:
Deluan
2021-07-15 11:53:08 -04:00
parent 5064cb2a46
commit 8d56ec898e
4 changed files with 94 additions and 35 deletions
+2 -2
View File
@@ -87,10 +87,10 @@ func (s *mediaFileMapper) mapTrackTitle(md *metadata.Tags) string {
func (s *mediaFileMapper) mapAlbumArtistName(md *metadata.Tags) string {
switch {
case md.Compilation():
return consts.VariousArtists
case md.AlbumArtist() != "":
return md.AlbumArtist()
case md.Compilation():
return consts.VariousArtists
case md.Artist() != "":
return md.Artist()
default: