From e806dc23aeb0d6b2b7b1e8de92c3b2f99df04f57 Mon Sep 17 00:00:00 2001 From: Lightling Date: Sun, 3 Mar 2024 13:06:16 -0500 Subject: [PATCH] fix wrong "users left" count due to skipped --- lib/dl.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/dl.js b/lib/dl.js index 240da9e..c0bae4b 100644 --- a/lib/dl.js +++ b/lib/dl.js @@ -67,9 +67,11 @@ export const getMany = (userDb, threadMax, directory, mode) => new Promise((reso if (mode === 'search') { if (userDb[currentIndex].shouldSkipSearch) { log(ctx, `Skipping ${userDb[currentIndex].user} because /media ended with a skipped file`); + userDb[currentIndex].running = `finished ${mode}`; continue; } else if (!!userDb[currentIndex].lastError) { log(ctx, `Skipping ${userDb[currentIndex].user} because of error: ${userDb[currentIndex].lastError}`); + userDb[currentIndex].running = `finished ${mode}`; continue; } }