Expose extrasPath to queue item
This commit is contained in:
parent
0a11f53c4c
commit
314beb682f
|
@ -577,8 +577,9 @@ class DownloadJob:
|
||||||
logger.info(f"[{track.mainArtist['name']} - {track.title}] Track download completed\n{str(writepath)}")
|
logger.info(f"[{track.mainArtist['name']} - {track.title}] Track download completed\n{str(writepath)}")
|
||||||
self.queueItem.downloaded += 1
|
self.queueItem.downloaded += 1
|
||||||
self.queueItem.files.append(str(writepath))
|
self.queueItem.files.append(str(writepath))
|
||||||
|
self.queueItem.extrasPath = str(self.extrasPath)
|
||||||
if self.interface:
|
if self.interface:
|
||||||
self.interface.send("updateQueue", {'uuid': self.queueItem.uuid, 'downloaded': True, 'downloadPath': str(writepath)})
|
self.interface.send("updateQueue", {'uuid': self.queueItem.uuid, 'downloaded': True, 'downloadPath': str(writepath), 'extrasPath': str(self.extrasPath)})
|
||||||
return result
|
return result
|
||||||
|
|
||||||
def getPreferredBitrate(self, track):
|
def getPreferredBitrate(self, track):
|
||||||
|
|
|
@ -9,6 +9,7 @@ class QueueItem:
|
||||||
self.type = queueItemDict['type']
|
self.type = queueItemDict['type']
|
||||||
self.id = queueItemDict['id']
|
self.id = queueItemDict['id']
|
||||||
self.bitrate = queueItemDict['bitrate']
|
self.bitrate = queueItemDict['bitrate']
|
||||||
|
self.extrasPath = queueItemDict.get('extrasPath', '')
|
||||||
self.files = queueItemDict['files']
|
self.files = queueItemDict['files']
|
||||||
self.downloaded = queueItemDict['downloaded']
|
self.downloaded = queueItemDict['downloaded']
|
||||||
self.failed = queueItemDict['failed']
|
self.failed = queueItemDict['failed']
|
||||||
|
@ -24,6 +25,7 @@ class QueueItem:
|
||||||
self.type = type
|
self.type = type
|
||||||
self.id = id
|
self.id = id
|
||||||
self.bitrate = bitrate
|
self.bitrate = bitrate
|
||||||
|
self.extrasPath = None
|
||||||
self.files = []
|
self.files = []
|
||||||
self.settings = settings
|
self.settings = settings
|
||||||
self.downloaded = 0
|
self.downloaded = 0
|
||||||
|
@ -41,6 +43,7 @@ class QueueItem:
|
||||||
'cover': self.cover,
|
'cover': self.cover,
|
||||||
'explicit': self.explicit,
|
'explicit': self.explicit,
|
||||||
'size': self.size,
|
'size': self.size,
|
||||||
|
'extrasPath': self.extrasPath,
|
||||||
'files': self.files,
|
'files': self.files,
|
||||||
'downloaded': self.downloaded,
|
'downloaded': self.downloaded,
|
||||||
'failed': self.failed,
|
'failed': self.failed,
|
||||||
|
|
Loading…
Reference in New Issue