Fixed #56
This commit is contained in:
parent
d8fdc8344f
commit
73304e06c5
|
@ -1,3 +1,3 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
__version__ = "1.1.5"
|
__version__ = "1.1.6"
|
||||||
|
|
|
@ -628,7 +628,6 @@ def downloadTrackObj(dz, trackAPI, settings, bitrate, queueItem, extraTrack=None
|
||||||
else:
|
else:
|
||||||
track['playlist']['artist'] = {"Main": []}
|
track['playlist']['artist'] = {"Main": []}
|
||||||
track['playlist']['artists'] = []
|
track['playlist']['artists'] = []
|
||||||
track['trackNumber'] = trackAPI["POSITION"]
|
|
||||||
track['playlist']['trackTotal'] = trackAPI["_EXTRA_PLAYLIST"]['nb_tracks']
|
track['playlist']['trackTotal'] = trackAPI["_EXTRA_PLAYLIST"]['nb_tracks']
|
||||||
track['playlist']['recordType'] = "Compilation"
|
track['playlist']['recordType'] = "Compilation"
|
||||||
track['playlist']['barcode'] = ""
|
track['playlist']['barcode'] = ""
|
||||||
|
@ -639,9 +638,10 @@ def downloadTrackObj(dz, trackAPI, settings, bitrate, queueItem, extraTrack=None
|
||||||
'month': trackAPI["_EXTRA_PLAYLIST"]["creation_date"][5:7],
|
'month': trackAPI["_EXTRA_PLAYLIST"]["creation_date"][5:7],
|
||||||
'year': trackAPI["_EXTRA_PLAYLIST"]["creation_date"][0:4]
|
'year': trackAPI["_EXTRA_PLAYLIST"]["creation_date"][0:4]
|
||||||
}
|
}
|
||||||
track['discNumber'] = "1"
|
|
||||||
track['playlist']['discTotal'] = "1"
|
track['playlist']['discTotal'] = "1"
|
||||||
if settings['tags']['savePlaylistAsCompilation'] and "playlist" in track:
|
if settings['tags']['savePlaylistAsCompilation'] and "playlist" in track:
|
||||||
|
track['trackNumber'] = trackAPI["POSITION"]
|
||||||
|
track['discNumber'] = "1"
|
||||||
track['album'] = {**track['album'], **track['playlist']}
|
track['album'] = {**track['album'], **track['playlist']}
|
||||||
else:
|
else:
|
||||||
if 'date' in track['album']:
|
if 'date' in track['album']:
|
||||||
|
|
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.5",
|
version="1.1.6",
|
||||||
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