mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-09 11:11:28 +03:00
Utilize yt-dlp filesize approximations if available
This commit is contained in:
@@ -173,8 +173,8 @@ function getExpectedFileSize(input_info_jsons) {
|
|||||||
let individual_expected_filesize = 0;
|
let individual_expected_filesize = 0;
|
||||||
formats.forEach(format_id => {
|
formats.forEach(format_id => {
|
||||||
info_json.formats.forEach(available_format => {
|
info_json.formats.forEach(available_format => {
|
||||||
if (available_format.format_id === format_id && available_format.filesize) {
|
if (available_format.format_id === format_id && (available_format.filesize || available_format.filesize_approx)) {
|
||||||
individual_expected_filesize += available_format.filesize;
|
individual_expected_filesize += (available_format.filesize ? available_format.filesize : available_format.filesize_approx);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user