Update downloadObject size after conversion

This commit is contained in:
RemixDev 2021-06-01 20:24:26 +02:00
parent 1b369da0b9
commit 6dc73ac69e
2 changed files with 6 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -166,6 +166,7 @@ export default {
mounted() {
socket.on('startDownload', this.startDownload)
socket.on('startConversion', this.startConversion)
socket.on('finishConversion', this.finishConversion)
// socket.on('init_downloadQueue', this.initQueue)
socket.on('addedToQueue', this.addToQueue)
socket.on('updateQueue', this.updateQueue)
@ -426,6 +427,9 @@ export default {
this.$set(this.queueList[uuid], 'status', 'converting')
this.$set(this.queueList[uuid], 'conversion', 0)
},
finishConversion(downloadObject) {
this.$set(this.queueList[downloadObject.uuid], 'size', downloadObject.size)
},
async showErrorsTab(item) {
await this.setErrors(item)