It's now possible to cancel spotify playlist conversion
This commit is contained in:
parent
2a662928f9
commit
00885ae674
|
@ -104,6 +104,7 @@ class DownloadJob:
|
|||
self.playlistURLs = []
|
||||
|
||||
def start(self):
|
||||
if not self.queueItem.cancel:
|
||||
if isinstance(self.queueItem, QISingle):
|
||||
result = self.downloadWrapper(self.queueItem.single)
|
||||
if result:
|
||||
|
|
|
@ -237,6 +237,8 @@ class SpotifyHelper:
|
|||
interface.send("startConversion", queueItem.uuid)
|
||||
collection = []
|
||||
for pos, track in enumerate(queueItem.extra['unconverted'], start=1):
|
||||
if queueItem.cancel:
|
||||
return
|
||||
if str(track['id']) in cache['tracks']:
|
||||
trackID = cache['tracks'][str(track['id'])]
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue