1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-05 19:42:38 +02:00
This commit is contained in:
Daniel Neto 2023-02-27 15:41:07 -03:00
parent b1048c7827
commit 9c94150b6b

View file

@ -2399,7 +2399,6 @@ function downloadURL(url, filename) {
var contentLength = 0;
fetch(url)
.then(response => {
downloadModal.hidePleaseWait();
avideoToastSuccess('Download Start');
const contentEncoding = response.headers.get('content-encoding');
const contentLength = response.headers.get(contentEncoding ? 'x-file-size' : 'content-length');
@ -2499,8 +2498,9 @@ function downloadURLOrAlertError(jsonURL, data, filename, FFMpegProgress) {
} else {
console.log('downloadURLOrAlertError 4', response);
avideoResponse(response);
downloadURLOrAlertModal.hidePleaseWait();
}
downloadURLOrAlertModal.hidePleaseWait();
}
});
}