Fixed track['album']['mainArtist']['save'] error

'save' wansn't setted when falling back to gw API
This commit is contained in:
RemixDev 2020-08-05 15:18:23 +02:00
parent f326617afa
commit d22f55c279
3 changed files with 3 additions and 3 deletions

View File

@ -1,3 +1,3 @@
#!/usr/bin/env python3
__version__ = "1.1.29"
__version__ = "1.1.30"

View File

@ -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']

View File

@ -7,7 +7,7 @@ README = (HERE / "README.md").read_text()
setup(
name="deemix",
version="1.1.29",
version="1.1.30",
description="A barebone deezer downloader library",
long_description=README,
long_description_content_type="text/markdown",