mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 10:49:36 +02:00
Improve download from CDN
This commit is contained in:
parent
bb2f81194b
commit
db20a96045
1 changed files with 13 additions and 11 deletions
|
@ -2281,20 +2281,22 @@ function checkFFMPEGProgress(FFMpegProgress) {
|
|||
url: FFMpegProgress,
|
||||
success: function (response) {
|
||||
console.log(response);
|
||||
setTimeout(function () {
|
||||
if (typeof response.progress.progress !== 'undefined') {
|
||||
var text = 'Converting ...';
|
||||
if (typeof response.progress.progress !== 'undefined') {
|
||||
text += response.progress.progress+' ';
|
||||
text += response.progress.progress + ' ';
|
||||
}
|
||||
if (typeof response.progress.remainTimeHuman !== 'undefined') {
|
||||
text += response.progress.remainTimeHuman+' ';
|
||||
text += response.progress.remainTimeHuman + ' ';
|
||||
}
|
||||
modal.setText(text);
|
||||
|
||||
}
|
||||
if (response.progress.progress !== 100) {
|
||||
setTimeout(function () {
|
||||
checkFFMPEGProgress(FFMpegProgress);
|
||||
}, 1000);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue