From f3b36b3ea377b7bc5d146948a69f708b27523a04 Mon Sep 17 00:00:00 2001 From: RemixDev Date: Thu, 23 Jul 2020 21:14:17 +0200 Subject: [PATCH] Fixed issue where main artist was not saved --- 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 69d0913..5f8ff9e 100644 --- a/deemix/__init__.py +++ b/deemix/__init__.py @@ -1,3 +1,3 @@ #!/usr/bin/env python3 -__version__ = "1.1.15" +__version__ = "1.1.17" diff --git a/deemix/app/downloader.py b/deemix/app/downloader.py index d55150d..deda84d 100644 --- a/deemix/app/downloader.py +++ b/deemix/app/downloader.py @@ -291,7 +291,7 @@ def getTrackData(dz, trackAPI_gw, settings, trackAPI=None, albumAPI_gw=None, alb track['album']['artists'].append(artist['name']) if not artist['role'] in track['album']['artist']: track['album']['artist'][artist['role']] = [] - if artist['role'] != "Main" and artist['name'] not in track['album']['artist']['Main']: + if artist['role'] != "Main" and artist['name'] not in track['album']['artist']['Main'] or artist['role'] == "Main": track['album']['artist'][artist['role']].append(artist['name']) if settings['removeDuplicateArtists']: track['album']['artists'] = uniqueArray(track['album']['artists']) @@ -366,7 +366,7 @@ def getTrackData(dz, trackAPI_gw, settings, trackAPI=None, albumAPI_gw=None, alb track['artists'].append(artist['name']) if not artist['role'] in track['artist']: track['artist'][artist['role']] = [] - if artist['role'] != "Main" and artist['name'] not in track['artist']['Main']: + if artist['role'] != "Main" and artist['name'] not in track['artist']['Main'] or artist['role'] == "Main": track['artist'][artist['role']].append(artist['name']) if settings['removeDuplicateArtists']: track['artists'] = uniqueArray(track['artists']) diff --git a/setup.py b/setup.py index c9fcb2c..25eeea8 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ README = (HERE / "README.md").read_text() setup( name="deemix", - version="1.1.15", + version="1.1.17", description="A barebone deezer downloader library", long_description=README, long_description_content_type="text/markdown",