From 71008fe43d15d06e7defd0054a857e84372db664 Mon Sep 17 00:00:00 2001 From: James Ketrenos Date: Fri, 28 Sep 2018 12:59:19 -0700 Subject: [PATCH] Fix output during batch-duplicates to include path of duplicate Increase EXIF extraction concurrency to 5 --- server/scanner.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/server/scanner.js b/server/scanner.js index 3bcb34d..030f9db 100755 --- a/server/scanner.js +++ b/server/scanner.js @@ -238,7 +238,12 @@ function processBlock(items) { /* If this asset exists in this transaction block, push it into the results */ for (let i = 0; i < index; i++) { if (batch[i].hash == asset.hash) { - results.push(batch[i]); + results.push({ + id: batch[i].id, + hash: batch[i].hash, + path: batch[i].album.path, + filename: batch[i].filename + }); } } @@ -424,7 +429,7 @@ function processBlock(items) { console.warn("Continuing file processing."); }); }, { - concurrency: 1 + concurrency: 5 }); }).then(function() { console.log("Completed processing queue. Marking " + duplicates.length + " duplicates.");