Commit 14dccc0f authored by chaz's avatar chaz 👻

Write status after verification

This means if the last item in a download slot already exists, it
doesn't leave Verifying... on the screen forever.
parent 951f4fdd
......@@ -165,7 +165,14 @@ const shouldSkipFile = async (file, progress, alwaysSkipExisting = false) => {
progress.setStatus(`Verifying ${file.originalFilename}...`);
return (await hashFile(file, algorithm) === file[algorithm]);
const shouldSkip = (await hashFile(file, algorithm) === file[algorithm]);
if (shouldSkip)
progress.setStatus(`Verified ${file.originalFilename}`);
progress.setStatus(`Verification failed for ${file.originalFilename}`);
return shouldSkip;
// TODO: --image, --video, --audio, --book, --text, --software -- only download
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment