From 3a049a99ac207ad47348ca6b17e2b12f2156204e Mon Sep 17 00:00:00 2001 From: Isaac Abadi Date: Sun, 1 Nov 2020 19:38:22 -0500 Subject: [PATCH] Fixed bug where non-youtube downloads would fail --- backend/app.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/app.js b/backend/app.js index 58ef417..bee8037 100644 --- a/backend/app.js +++ b/backend/app.js @@ -1595,6 +1595,8 @@ function checkDownloadPercent(download) { const filename = path.format(path.parse(download['_filename'].substring(0, download['_filename'].length-4))); const resulting_file_size = download['filesize']; + if (!resulting_file_size) return; + glob(`${filename}*`, (err, files) => { let sum_size = 0; files.forEach(file => {