From 13e38c487fc52982be0cb565a14ba8f3889b3568 Mon Sep 17 00:00:00 2001 From: DebaucheryLibrarian Date: Sun, 4 Jun 2023 01:05:59 +0200 Subject: [PATCH] Ignoring skipped scenes in final tally. --- src/tools/transfer.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/tools/transfer.js b/src/tools/transfer.js index 60beacd7..b078c387 100644 --- a/src/tools/transfer.js +++ b/src/tools/transfer.js @@ -523,6 +523,7 @@ async function addRelease(release, context) { return { ...release, + skipped: true, id: existingRelease.id, entityName: existingRelease.entity_name, }; @@ -632,8 +633,8 @@ async function load() { return acc.concat(!!scene); }, Promise.resolve([])); - console.log(`Loaded ${addedMovies.filter(Boolean).length}/${releases.filter((release) => release.type === 'movie').length} movies in batch ${batchId}`); - console.log(`Loaded ${addedScenes.filter(Boolean).length}/${releases.filter((release) => release.type === 'release').length} scenes in batch ${batchId}`); + console.log(`Loaded ${addedMovies.filter((movie) => movie && !movie.skipped).length}/${releases.filter((release) => release.type === 'movie').length} movies in batch ${batchId}`); + console.log(`Loaded ${addedScenes.filter((scene) => scene && !scene.skipped).length}/${releases.filter((release) => release.type === 'release').length} scenes in batch ${batchId}`); process.exit(); }