mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-25 10:43:19 +03:00
Downloads are now properly assigned a filename
This commit is contained in:
@@ -1162,6 +1162,8 @@ async function downloadFileByURL_exec(url, type, options, sessionID = null) {
|
|||||||
if (Array.isArray(info)) {
|
if (Array.isArray(info)) {
|
||||||
download['fileNames'] = [];
|
download['fileNames'] = [];
|
||||||
for (let info_obj of info) download['fileNames'].push(info_obj['_filename']);
|
for (let info_obj of info) download['fileNames'].push(info_obj['_filename']);
|
||||||
|
} else {
|
||||||
|
download['_filename'] = info['_filename'];
|
||||||
}
|
}
|
||||||
download['filesize'] = utils.getExpectedFileSize(info);
|
download['filesize'] = utils.getExpectedFileSize(info);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user