mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-05 05:51:29 +03:00
Default youtube downloader switched back to youtube-dl after testing
Fixed bug that caused some non-youtube downloads from failing
This commit is contained in:
@@ -114,6 +114,7 @@ function getExpectedFileSize(info_json) {
|
||||
const formats = info_json['format_id'].split('+');
|
||||
let expected_filesize = 0;
|
||||
formats.forEach(format_id => {
|
||||
if (!info_json.formats) return expected_filesize;
|
||||
info_json.formats.forEach(available_format => {
|
||||
if (available_format.format_id === format_id && available_format.filesize) {
|
||||
expected_filesize += available_format.filesize;
|
||||
|
||||
Reference in New Issue
Block a user