Fixed track['album']['mainArtist']['save'] error
'save' wansn't setted when falling back to gw API
This commit is contained in:
parent
f326617afa
commit
d22f55c279
|
@ -1,3 +1,3 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
__version__ = "1.1.29"
|
||||
__version__ = "1.1.30"
|
||||
|
|
|
@ -307,7 +307,6 @@ 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']:
|
||||
|
@ -370,6 +369,7 @@ def getTrackData(dz, trackAPI_gw, settings, trackAPI=None, albumAPI_gw=None, alb
|
|||
'year': albumAPI_gw["PHYSICAL_RELEASE_DATE"][0:4]
|
||||
}
|
||||
track['album']['genre'] = []
|
||||
track['album']['mainArtist']['save'] = track['album']['mainArtist']['id'] != 5080 or track['album']['mainArtist']['id'] == 5080 and settings['albumVariousArtists']
|
||||
|
||||
if 'date' in track['album'] and 'date' not in track:
|
||||
track['date'] = track['album']['date']
|
||||
|
|
Loading…
Reference in New Issue