From d22f55c279b33a37a4c09e281178d219a6cf4e6f Mon Sep 17 00:00:00 2001 From: RemixDev Date: Wed, 5 Aug 2020 15:18:23 +0200 Subject: [PATCH] Fixed track['album']['mainArtist']['save'] error 'save' wansn't setted when falling back to gw API --- deemix/__init__.py | 2 +- deemix/app/downloader.py | 2 +- setup.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/deemix/__init__.py b/deemix/__init__.py index 27c34a6..42e1e43 100644 --- a/deemix/__init__.py +++ b/deemix/__init__.py @@ -1,3 +1,3 @@ #!/usr/bin/env python3 -__version__ = "1.1.29" +__version__ = "1.1.30" diff --git a/deemix/app/downloader.py b/deemix/app/downloader.py index b5b3525..4f0e034 100644 --- a/deemix/app/downloader.py +++ b/deemix/app/downloader.py @@ -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'] diff --git a/setup.py b/setup.py index b31e9e7..b4146c5 100644 --- a/setup.py +++ b/setup.py @@ -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",