优化任务下载状态显示

This commit is contained in:
lyswhut
2023-12-30 12:31:18 +08:00
parent 2337a3e8a3
commit 1de087eac7
11 changed files with 52 additions and 8 deletions
+1
View File
@@ -205,6 +205,7 @@ const createTask = async(downloadInfo: LX.Download.ListItem, savePath: string, s
downloadInfo.downloaded = status.downloaded
downloadInfo.progress = status.progress
downloadInfo.speed = status.speed
downloadInfo.writeQueue = status.writeQueue
sendAction(downloadInfo.id, { action: 'progress', data: status })
// console.log(status)
},
+1
View File
@@ -80,6 +80,7 @@ export const createDownloadInfo = (musicInfo: LX.Music.MusicInfoOnline, type: LX
total: 0,
progress: 0,
speed: '',
writeQueue: 0,
metadata: {
musicInfo,
url: null,