mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 19:42:38 +02:00
Improve download from CDN
This commit is contained in:
parent
d7cc85cfb6
commit
5b04945eac
1 changed files with 6 additions and 4 deletions
|
@ -2274,7 +2274,7 @@ function downloadURLOrAlertError(jsonURL, data, filename, FFMpegProgress) {
|
|||
}
|
||||
|
||||
function checkFFMPEGProgress(FFMpegProgress) {
|
||||
if(empty(FFMpegProgress)){
|
||||
if (empty(FFMpegProgress)) {
|
||||
return false;
|
||||
}
|
||||
$.ajax({
|
||||
|
@ -2282,9 +2282,11 @@ function checkFFMPEGProgress(FFMpegProgress) {
|
|||
success: function (response) {
|
||||
console.log(response);
|
||||
setTimeout(function () {
|
||||
if(typeof response.progress.progress !== 'undefined' && response.progress.progress!==100){
|
||||
checkFFMPEGProgress(FFMpegProgress);
|
||||
modal.setText('Converting... '+response.progress.progress+'% '+response.progress.remainTimeHuman);
|
||||
if (typeof response.progress.progress !== 'undefined' && response.progress.progress !== 100) {
|
||||
modal.setText('Converting... ' + response.progress.progress + '% ' + response.progress.remainTimeHuman);
|
||||
if (response.progress.progress !== 100) {
|
||||
modal.setText('Converting... ' + response.progress.progress + '% ' + response.progress.remainTimeHuman);
|
||||
}
|
||||
}
|
||||
}, 1000);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue