mirror of
https://github.com/jely2002/youtube-dl-gui.git
synced 2021-11-01 22:46:21 +03:00
feat: show the user that subtitles are downloading (#53)
This commit is contained in:
@@ -59,10 +59,11 @@ class DownloadQuery extends Query {
|
||||
];
|
||||
}
|
||||
if (this.video.downloadSubs) {
|
||||
this.progressBar.setInitial("Downloading subtitles");
|
||||
args.push("--all-subs");
|
||||
args.push("--embed-subs");
|
||||
args.push("--sub-format")
|
||||
args.push("srt")
|
||||
args.push("srt");
|
||||
args.push("--convert-subs");
|
||||
args.push("srt");
|
||||
if(this.environment.settings.autoGenSubs) {
|
||||
|
||||
@@ -17,6 +17,10 @@ class ProgressBar {
|
||||
this.manager.updateProgress(this.video, {reset: true})
|
||||
}
|
||||
|
||||
setInitial(message) {
|
||||
this.manager.updateProgress(this.video, {initial: true, message: message});
|
||||
}
|
||||
|
||||
done(isAudio) {
|
||||
let audio = isAudio;
|
||||
if(!this.isUnifiedPlaylist()) audio = this.video.formats.length === 0 ? null : isAudio;
|
||||
|
||||
@@ -602,6 +602,10 @@ function updateProgress(args) {
|
||||
resetProgress($(card).find('.progress-bar')[0], card);
|
||||
return;
|
||||
}
|
||||
if(args.progress.initial != null && args.progress.initial) {
|
||||
$(card).find('.progress small').html(args.progress.message);
|
||||
return;
|
||||
}
|
||||
if(args.progress.finished != null && args.progress.finished) {
|
||||
if(args.progress.isPlaylist) {
|
||||
$(card).find('.progress small').html("Playlist downloaded - 100%");
|
||||
|
||||
Reference in New Issue
Block a user