Made singleAlbumArtist and albumVariousArtists work together

This commit is contained in:
RemixDev 2020-07-30 19:09:29 +02:00
parent e9418c8433
commit f91e7fe943
2 changed files with 2 additions and 1 deletions

View File

@ -307,6 +307,7 @@ def getTrackData(dz, trackAPI_gw, settings, trackAPI=None, albumAPI_gw=None, alb
'name': albumAPI['artist']['name'],
'pic': albumAPI['artist']['picture_small'][albumAPI['artist']['picture_small'].find('artist/') + 7:-24]
}
track['album']['mainArtist']['save'] = track['album']['mainArtist']['id'] != 5080 or track['album']['mainArtist']['id'] == 5080 and settings['albumVariousArtists']
track['album']['artist'] = {}
track['album']['artists'] = []
for artist in albumAPI['contributors']:

View File

@ -25,7 +25,7 @@ def tagID3(stream, track, save):
if save['album']:
tag.add(TALB(text=track['album']['title']))
if save['albumArtist'] and len(track['album']['artists']):
if save['singleAlbumArtist']:
if save['singleAlbumArtist'] and track['album']['mainArtist']['save']:
tag.add(TPE2(text=track['album']['mainArtist']['name']))
else:
tag.add(TPE2(text=track['album']['artists']))