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:
Isaac Abadi
2020-11-01 20:21:36 -05:00
parent 3a049a99ac
commit 9e4b328f91
4 changed files with 11 additions and 2 deletions

View File

@@ -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;