Hotfix for error that prevents downloads from occurring

This commit is contained in:
Tzahi12345
2023-04-24 21:11:10 -04:00
parent 5a379a6a2b
commit f973426bd2

View File

@@ -248,7 +248,7 @@ async function collectInfo(download_uid) {
info = await exports.getVideoInfoByURL(url, args, download_uid);
}
const stripped_category = {name: category['name'], uid: category['uid']};
const stripped_category = category ? {name: category['name'], uid: category['uid']} : null;
// setup info required to calculate download progress