Ignoring skipped scenes in final tally.
This commit is contained in:
parent
5b6911fd5c
commit
13e38c487f
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue