From 3d0f27b1070d92eaea5140a0d2d030f35b684e79 Mon Sep 17 00:00:00 2001 From: RemixDev Date: Sat, 18 Jul 2020 19:15:41 +0200 Subject: [PATCH] Fixed error when downloading single tracks --- deemix/__init__.py | 2 +- deemix/app/downloader.py | 8 ++++---- setup.py | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/deemix/__init__.py b/deemix/__init__.py index a78ada1..1bfeeb5 100644 --- a/deemix/__init__.py +++ b/deemix/__init__.py @@ -1,3 +1,3 @@ #!/usr/bin/env python3 -__version__ = "1.1.10" +__version__ = "1.1.11" diff --git a/deemix/app/downloader.py b/deemix/app/downloader.py index 6dc948e..d642058 100644 --- a/deemix/app/downloader.py +++ b/deemix/app/downloader.py @@ -993,11 +993,11 @@ def after_download_single(track, settings, queueItem): if 'extrasPath' not in track: track['extrasPath'] = settings['downloadLocation'] if settings['saveArtwork'] and 'albumPath' in track: - for image in result['albumURLs']: - downloadImage(image['url'], f"{result['albumPath']}.{image['ext']}", settings['overwriteFile']) + for image in track['albumURLs']: + downloadImage(image['url'], f"{track['albumPath']}.{image['ext']}", settings['overwriteFile']) if settings['saveArtworkArtist'] and 'artistPath' in track: - for image in result['artistURLs']: - downloadImage(image['url'], f"{result['artistPath']}.{image['ext']}", settings['overwriteFile']) + for image in track['artistURLs']: + downloadImage(image['url'], f"{track['artistPath']}.{image['ext']}", settings['overwriteFile']) if settings['logSearched'] and 'searched' in track: with open(os.path.join(track['extrasPath'], 'searched.txt'), 'wb+') as f: orig = f.read().decode('utf-8') diff --git a/setup.py b/setup.py index 3fccb89..c3084ac 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ README = (HERE / "README.md").read_text() setup( name="deemix", - version="1.1.10", + version="1.1.11", description="A barebone deezer downloader library", long_description=README, long_description_content_type="text/markdown",