From af4b19bd156ff7711f29d4f9fd772c3c1f861a88 Mon Sep 17 00:00:00 2001 From: uh_wot <3631986-uh_wot@users.noreply.gitlab.com> Date: Wed, 20 May 2020 21:10:35 +0200 Subject: [PATCH] Fixed getting cover URL if "Save playlists as compilation" is enabled --- deemix/app/downloader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deemix/app/downloader.py b/deemix/app/downloader.py index fbc525e..930790c 100644 --- a/deemix/app/downloader.py +++ b/deemix/app/downloader.py @@ -517,7 +517,7 @@ def downloadTrackObj(dz, trackAPI, settings, bitrate, queueItem, extraTrack=None if settings['tags']['savePlaylistAsCompilation'] and "_EXTRA_PLAYLIST" in trackAPI: if 'dzcdn.net' in trackAPI["_EXTRA_PLAYLIST"]['picture_small']: track['album']['picUrl'] = trackAPI["_EXTRA_PLAYLIST"]['picture_small'][:-24] + "/{}x{}-{}".format( - track['album']['pic'], settings['embeddedArtworkSize'], settings['embeddedArtworkSize'], + settings['embeddedArtworkSize'], settings['embeddedArtworkSize'], 'none-100-0-0.png' if settings['PNGcovers'] else f'000000-{settings["jpegImageQuality"]}-0-0.jpg') else: track['album']['picUrl'] = trackAPI["_EXTRA_PLAYLIST"]['picture_xl']