diff --git a/backend/app.js b/backend/app.js index 38ab93d..d387cfd 100644 --- a/backend/app.js +++ b/backend/app.js @@ -1159,7 +1159,10 @@ async function downloadFileByURL_exec(url, type, options, sessionID = null) { return; } else { // store info in download for future use - download['_filename'] = info['_filename']; + if (Array.isArray(info)) { + download['fileNames'] = []; + for (let info_obj of info) download['fileNames'].push(info_obj['_filename']); + } download['filesize'] = utils.getExpectedFileSize(info); } @@ -1613,12 +1616,15 @@ function checkDownloadPercent(download) { Any file that starts with