Added more info to files in downloadObject

This commit is contained in:
RemixDev 2021-09-03 00:04:17 +02:00
parent 5d1102c6a7
commit 385cdce2c0
No known key found for this signature in database
GPG Key ID: B33962B465BDB51C
1 changed files with 2 additions and 1 deletions

View File

@ -429,7 +429,6 @@ class Downloader:
if track.searched: returnData['searched'] = True
self.downloadObject.downloaded += 1
self.downloadObject.files.append(str(writepath))
if self.listener: self.listener.send("updateQueue", {
'uuid': self.downloadObject.uuid,
'downloaded': True,
@ -438,6 +437,8 @@ class Downloader:
})
returnData['filename'] = str(writepath)[len(str(extrasPath))+ len(pathSep):]
returnData['data'] = itemData
returnData['path'] = str(writepath)
self.downloadObject.files.append(returnData)
return returnData
def downloadWrapper(self, extraData, track=None):