Fixed saving extrasPath

This commit is contained in:
RemixDev 2020-08-17 17:46:21 +02:00
parent 805dafd510
commit e351803a81
1 changed files with 5 additions and 1 deletions

View File

@ -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 = ""