Fixed restore of corrupted queue

This commit is contained in:
RemixDev 2022-03-08 16:07:20 +01:00
parent 73ae96c555
commit c02ddfbc9f
2 changed files with 6 additions and 1 deletions

View File

@ -234,6 +234,11 @@ export class DeemixApp {
do {
currentUUID = this.queueOrder.shift() || ''
} while (this.queue[currentUUID] === undefined && this.queueOrder.length)
if (this.queue[currentUUID] === undefined) {
fs.writeFileSync(configFolder + `queue${sep}order.json`, JSON.stringify(this.queueOrder))
this.currentJob = null
return null
}
this.queue[currentUUID].status = 'downloading'
const currentItem: any = JSON.parse(fs.readFileSync(configFolder + `queue${sep}${currentUUID}.json`).toString())
let downloadObject: any

2
webui

@ -1 +1 @@
Subproject commit 6d5c52eabf960f86f8a4abe1d9654f619b0fbb81
Subproject commit 283bb5fa0df7042c78919f64c1c6638996ca6ac8