Improved skipped scene reporting in transfer tool.

This commit is contained in:
DebaucheryLibrarian 2023-06-04 01:13:23 +02:00
parent 13e38c487f
commit e0f7db8187
1 changed files with 7 additions and 3 deletions

View File

@ -619,7 +619,9 @@ async function load() {
const acc = await chain; const acc = await chain;
const movie = await addRelease(release, { batchId, tagIdsBySlug, studioIdsBySlug }); const movie = await addRelease(release, { batchId, tagIdsBySlug, studioIdsBySlug });
console.log(`Loaded ${index}/${array.length} '${movie.entityName}' movie "${movie.title}"`); if (!movie.skipped) {
console.log(`Loaded ${index}/${array.length} '${movie.entityName}' movie "${movie.title}"`);
}
return acc.concat(movie); return acc.concat(movie);
}, Promise.resolve([])); }, Promise.resolve([]));
@ -628,9 +630,11 @@ async function load() {
const acc = await chain; const acc = await chain;
const scene = await addRelease(release, { batchId, movies: addedMovies, tagIdsBySlug, studioIdsBySlug }); const scene = await addRelease(release, { batchId, movies: addedMovies, tagIdsBySlug, studioIdsBySlug });
console.log(`Loaded ${index}/${array.length} '${scene.entityName}' scene "${scene.title}"`); if (!scene.skipped) {
console.log(`Loaded ${index}/${array.length} '${scene.entityName}' scene "${scene.title}"`);
}
return acc.concat(!!scene); return acc.concat((!!scene && !scene.skipped));
}, Promise.resolve([])); }, Promise.resolve([]));
console.log(`Loaded ${addedMovies.filter((movie) => movie && !movie.skipped).length}/${releases.filter((release) => release.type === 'movie').length} movies in batch ${batchId}`); console.log(`Loaded ${addedMovies.filter((movie) => movie && !movie.skipped).length}/${releases.filter((release) => release.type === 'movie').length} movies in batch ${batchId}`);