Fixed saving extrasPath
This commit is contained in:
parent
805dafd510
commit
e351803a81
|
@ -99,7 +99,7 @@ class DownloadJob:
|
||||||
self.bitrate = queueItem.bitrate
|
self.bitrate = queueItem.bitrate
|
||||||
self.downloadPercentage = 0
|
self.downloadPercentage = 0
|
||||||
self.lastPercentage = 0
|
self.lastPercentage = 0
|
||||||
self.extrasPath = self.settings['downloadLocation']
|
self.extrasPath = None
|
||||||
self.playlistPath = None
|
self.playlistPath = None
|
||||||
self.playlistURLs = []
|
self.playlistURLs = []
|
||||||
|
|
||||||
|
@ -123,6 +123,8 @@ class DownloadJob:
|
||||||
return self.extrasPath
|
return self.extrasPath
|
||||||
|
|
||||||
def singleAfterDownload(self, result):
|
def singleAfterDownload(self, result):
|
||||||
|
if not self.extrasPath:
|
||||||
|
self.extrasPath = self.settings['downloadLocation']
|
||||||
# Save Album Cover
|
# Save Album Cover
|
||||||
if self.settings['saveArtwork'] and 'albumPath' in result:
|
if self.settings['saveArtwork'] and 'albumPath' in result:
|
||||||
for image in result['albumURLs']:
|
for image in result['albumURLs']:
|
||||||
|
@ -145,6 +147,8 @@ class DownloadJob:
|
||||||
execute(self.settings['executeCommand'].replace("%folder%", self.extrasPath).replace("%filename%", result['filename']))
|
execute(self.settings['executeCommand'].replace("%folder%", self.extrasPath).replace("%filename%", result['filename']))
|
||||||
|
|
||||||
def collectionAfterDownload(self, tracks):
|
def collectionAfterDownload(self, tracks):
|
||||||
|
if not self.extrasPath:
|
||||||
|
self.extrasPath = self.settings['downloadLocation']
|
||||||
playlist = [None] * len(tracks)
|
playlist = [None] * len(tracks)
|
||||||
errors = ""
|
errors = ""
|
||||||
searched = ""
|
searched = ""
|
||||||
|
|
Loading…
Reference in New Issue