Fix output during batch-duplicates to include path of duplicate

Increase EXIF extraction concurrency to 5
This commit is contained in:
James Ketrenos 2018-09-28 12:59:19 -07:00
parent 7077862382
commit 71008fe43d

View File

@ -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.");