mirror of
https://github.com/jely2002/youtube-dl-gui.git
synced 2021-11-01 22:46:21 +03:00
Fix progressbar only starts moving when the first video gets downloaded
This commit is contained in:
@@ -70,6 +70,7 @@ class DownloadQueryList {
|
||||
resolve();
|
||||
}
|
||||
});
|
||||
this.progressBar.updatePlaylist(this.done - this.cancelled, this.length - this.cancelled);
|
||||
}
|
||||
}))
|
||||
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user