Downloads are now properly assigned a filename

This commit is contained in:
Isaac Abadi
2020-09-21 00:27:49 -04:00
parent daca715d1b
commit 004a234b02

View File

@@ -1162,6 +1162,8 @@ async function downloadFileByURL_exec(url, type, options, sessionID = null) {
if (Array.isArray(info)) {
download['fileNames'] = [];
for (let info_obj of info) download['fileNames'].push(info_obj['_filename']);
} else {
download['_filename'] = info['_filename'];
}
download['filesize'] = utils.getExpectedFileSize(info);
}