Ignoring skipped scenes in final tally.

This commit is contained in:
DebaucheryLibrarian 2023-06-04 01:05:59 +02:00
parent 5b6911fd5c
commit 13e38c487f
1 changed files with 3 additions and 2 deletions

View File

@ -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();
}