Fixed transfer status, moved media logging to debug level.

This commit is contained in:
DebaucheryLibrarian 2023-06-04 01:04:21 +02:00
parent c9201430ea
commit 33cab26d3b
1 changed files with 5 additions and 3 deletions

View File

@ -415,7 +415,9 @@ async function transferMedia(media, target) {
const temp = path.join('media/temp', filepath);
const url = new URL(media[type], `${media.s3 ? config.media.transferSources.s3 : config.media.transferSources.local}/`).href;
console.log('Transferring media', url);
if (args.logLevel === 'debug') {
console.log('Transferring media', url);
}
const res = await bhttp.get(url, { stream: true });
@ -616,7 +618,7 @@ async function load() {
const acc = await chain;
const movie = await addRelease(release, { batchId, tagIdsBySlug, studioIdsBySlug });
console.log(`Loaded ${index}/${array} '${movie.entityName}' movie "${movie.title}"`);
console.log(`Loaded ${index}/${array.length} '${movie.entityName}' movie "${movie.title}"`);
return acc.concat(movie);
}, Promise.resolve([]));
@ -625,7 +627,7 @@ async function load() {
const acc = await chain;
const scene = await addRelease(release, { batchId, movies: addedMovies, tagIdsBySlug, studioIdsBySlug });
console.log(`Loaded ${index}/${array} '${scene.entityName}' scene "${scene.title}"`);
console.log(`Loaded ${index}/${array.length} '${scene.entityName}' scene "${scene.title}"`);
return acc.concat(!!scene);
}, Promise.resolve([]));