1
0
Fork 0
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:
DanieL 2022-06-27 14:18:31 -03:00
parent bb2f81194b
commit db20a96045

View file

@ -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);
}
}
}
});
}