From 73304e06c5e1fff70fe5bbf148a83330601c3791 Mon Sep 17 00:00:00 2001 From: RemixDev Date: Mon, 13 Jul 2020 12:14:40 +0200 Subject: [PATCH] Fixed #56 --- deemix/__init__.py | 2 +- deemix/app/downloader.py | 4 ++-- setup.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/deemix/__init__.py b/deemix/__init__.py index e54b9af..9effa49 100644 --- a/deemix/__init__.py +++ b/deemix/__init__.py @@ -1,3 +1,3 @@ #!/usr/bin/env python3 -__version__ = "1.1.5" +__version__ = "1.1.6" diff --git a/deemix/app/downloader.py b/deemix/app/downloader.py index 8aa4062..e02f12f 100644 --- a/deemix/app/downloader.py +++ b/deemix/app/downloader.py @@ -628,7 +628,6 @@ def downloadTrackObj(dz, trackAPI, settings, bitrate, queueItem, extraTrack=None else: track['playlist']['artist'] = {"Main": []} track['playlist']['artists'] = [] - track['trackNumber'] = trackAPI["POSITION"] track['playlist']['trackTotal'] = trackAPI["_EXTRA_PLAYLIST"]['nb_tracks'] track['playlist']['recordType'] = "Compilation" track['playlist']['barcode'] = "" @@ -639,9 +638,10 @@ def downloadTrackObj(dz, trackAPI, settings, bitrate, queueItem, extraTrack=None 'month': trackAPI["_EXTRA_PLAYLIST"]["creation_date"][5:7], 'year': trackAPI["_EXTRA_PLAYLIST"]["creation_date"][0:4] } - track['discNumber'] = "1" track['playlist']['discTotal'] = "1" if settings['tags']['savePlaylistAsCompilation'] and "playlist" in track: + track['trackNumber'] = trackAPI["POSITION"] + track['discNumber'] = "1" track['album'] = {**track['album'], **track['playlist']} else: if 'date' in track['album']: diff --git a/setup.py b/setup.py index b908ae8..d538e12 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ README = (HERE / "README.md").read_text() setup( name="deemix", - version="1.1.5", + version="1.1.6", description="A barebone deezer downloader library", long_description=README, long_description_content_type="text/markdown",