From e351803a81b767e1d0b3748475be1e823df5455c Mon Sep 17 00:00:00 2001 From: RemixDev Date: Mon, 17 Aug 2020 17:46:21 +0200 Subject: [PATCH] Fixed saving extrasPath --- deemix/app/downloadjob.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/deemix/app/downloadjob.py b/deemix/app/downloadjob.py index 64dcb09..74cbf5e 100644 --- a/deemix/app/downloadjob.py +++ b/deemix/app/downloadjob.py @@ -99,7 +99,7 @@ class DownloadJob: self.bitrate = queueItem.bitrate self.downloadPercentage = 0 self.lastPercentage = 0 - self.extrasPath = self.settings['downloadLocation'] + self.extrasPath = None self.playlistPath = None self.playlistURLs = [] @@ -123,6 +123,8 @@ class DownloadJob: return self.extrasPath def singleAfterDownload(self, result): + if not self.extrasPath: + self.extrasPath = self.settings['downloadLocation'] # Save Album Cover if self.settings['saveArtwork'] and 'albumPath' in result: for image in result['albumURLs']: @@ -145,6 +147,8 @@ class DownloadJob: execute(self.settings['executeCommand'].replace("%folder%", self.extrasPath).replace("%filename%", result['filename'])) def collectionAfterDownload(self, tracks): + if not self.extrasPath: + self.extrasPath = self.settings['downloadLocation'] playlist = [None] * len(tracks) errors = "" searched = ""