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
|
#!/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'],
|
'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']:
|
||||||
|
@ -370,6 +369,7 @@ def getTrackData(dz, trackAPI_gw, settings, trackAPI=None, albumAPI_gw=None, alb
|
||||||
'year': albumAPI_gw["PHYSICAL_RELEASE_DATE"][0:4]
|
'year': albumAPI_gw["PHYSICAL_RELEASE_DATE"][0:4]
|
||||||
}
|
}
|
||||||
track['album']['genre'] = []
|
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:
|
if 'date' in track['album'] and 'date' not in track:
|
||||||
track['date'] = track['album']['date']
|
track['date'] = track['album']['date']
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -7,7 +7,7 @@ README = (HERE / "README.md").read_text()
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="deemix",
|
name="deemix",
|
||||||
version="1.1.29",
|
version="1.1.30",
|
||||||
description="A barebone deezer downloader library",
|
description="A barebone deezer downloader library",
|
||||||
long_description=README,
|
long_description=README,
|
||||||
long_description_content_type="text/markdown",
|
long_description_content_type="text/markdown",
|
||||||
|
|
Loading…
Reference in New Issue