Fix progressbar only starts moving when the first video gets downloaded

This commit is contained in:
Jelle Glebbeek
2021-03-21 01:10:33 +01:00
parent 3aad42095a
commit 3e76f3688b
2 changed files with 4 additions and 1 deletions

View File

@@ -70,6 +70,7 @@ class DownloadQueryList {
resolve();
}
});
this.progressBar.updatePlaylist(this.done - this.cancelled, this.length - this.cancelled);
}
}))

View File

@@ -18,7 +18,9 @@ class ProgressBar {
}
done(isAudio) {
this.manager.updateProgress(this.video, {finished: true, isAudio: this.video.formats.length === 0 ? null : isAudio, isPlaylist: this.isUnifiedPlaylist()})
let audio = isAudio;
if(!this.isUnifiedPlaylist()) audio = this.video.formats.length === 0 ? null : isAudio;
this.manager.updateProgress(this.video, {finished: true, isAudio: audio, isPlaylist: this.isUnifiedPlaylist()})
}
isUnifiedPlaylist() {