1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 09:49:28 +02:00

Improve download from CDN

This commit is contained in:
DanieL 2022-06-27 14:08:59 -03:00
parent 1c16681902
commit d7cc85cfb6

View file

@ -2282,8 +2282,9 @@ function checkFFMPEGProgress(FFMpegProgress) {
success: function (response) { success: function (response) {
console.log(response); console.log(response);
setTimeout(function () { setTimeout(function () {
if(response.progress.progress!==100){ if(typeof response.progress.progress !== 'undefined' && response.progress.progress!==100){
checkFFMPEGProgress(FFMpegProgress); checkFFMPEGProgress(FFMpegProgress);
modal.setText('Converting... '+response.progress.progress+'% '+response.progress.remainTimeHuman);
} }
}, 1000); }, 1000);
} }