forked from DebaucheryLibrarian/traxxx
Improved skipped scene reporting in transfer tool.
This commit is contained in:
parent
13e38c487f
commit
e0f7db8187
|
@ -619,7 +619,9 @@ async function load() {
|
|||
const acc = await chain;
|
||||
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);
|
||||
}, Promise.resolve([]));
|
||||
|
@ -628,9 +630,11 @@ async function load() {
|
|||
const acc = await chain;
|
||||
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([]));
|
||||
|
||||
console.log(`Loaded ${addedMovies.filter((movie) => movie && !movie.skipped).length}/${releases.filter((release) => release.type === 'movie').length} movies in batch ${batchId}`);
|
||||
|
|
Loading…
Reference in New Issue