Made singleAlbumArtist and albumVariousArtists work together
This commit is contained in:
parent
e9418c8433
commit
f91e7fe943
|
@ -307,6 +307,7 @@ def getTrackData(dz, trackAPI_gw, settings, trackAPI=None, albumAPI_gw=None, alb
|
||||||
'name': albumAPI['artist']['name'],
|
'name': albumAPI['artist']['name'],
|
||||||
'pic': albumAPI['artist']['picture_small'][albumAPI['artist']['picture_small'].find('artist/') + 7:-24]
|
'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']['artist'] = {}
|
||||||
track['album']['artists'] = []
|
track['album']['artists'] = []
|
||||||
for artist in albumAPI['contributors']:
|
for artist in albumAPI['contributors']:
|
||||||
|
|
|
@ -25,7 +25,7 @@ def tagID3(stream, track, save):
|
||||||
if save['album']:
|
if save['album']:
|
||||||
tag.add(TALB(text=track['album']['title']))
|
tag.add(TALB(text=track['album']['title']))
|
||||||
if save['albumArtist'] and len(track['album']['artists']):
|
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']))
|
tag.add(TPE2(text=track['album']['mainArtist']['name']))
|
||||||
else:
|
else:
|
||||||
tag.add(TPE2(text=track['album']['artists']))
|
tag.add(TPE2(text=track['album']['artists']))
|
||||||
|
|
Loading…
Reference in New Issue