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,19 +2281,21 @@ function checkFFMPEGProgress(FFMpegProgress) {
|
||||||
url: FFMpegProgress,
|
url: FFMpegProgress,
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
setTimeout(function () {
|
if (typeof response.progress.progress !== 'undefined') {
|
||||||
|
var text = 'Converting ...';
|
||||||
if (typeof response.progress.progress !== 'undefined') {
|
if (typeof response.progress.progress !== 'undefined') {
|
||||||
var text = 'Converting ...';
|
text += response.progress.progress + ' ';
|
||||||
if (typeof response.progress.progress !== 'undefined') {
|
|
||||||
text += response.progress.progress+' ';
|
|
||||||
}
|
|
||||||
if (typeof response.progress.remainTimeHuman !== 'undefined') {
|
|
||||||
text += response.progress.remainTimeHuman+' ';
|
|
||||||
}
|
|
||||||
modal.setText(text);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}, 1000);
|
if (typeof response.progress.remainTimeHuman !== 'undefined') {
|
||||||
|
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