Fixed transfer status, moved media logging to debug level.
This commit is contained in:
parent
c9201430ea
commit
33cab26d3b
|
@ -415,7 +415,9 @@ async function transferMedia(media, target) {
|
||||||
const temp = path.join('media/temp', filepath);
|
const temp = path.join('media/temp', filepath);
|
||||||
const url = new URL(media[type], `${media.s3 ? config.media.transferSources.s3 : config.media.transferSources.local}/`).href;
|
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 });
|
const res = await bhttp.get(url, { stream: true });
|
||||||
|
|
||||||
|
@ -616,7 +618,7 @@ 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} '${movie.entityName}' movie "${movie.title}"`);
|
console.log(`Loaded ${index}/${array.length} '${movie.entityName}' movie "${movie.title}"`);
|
||||||
|
|
||||||
return acc.concat(movie);
|
return acc.concat(movie);
|
||||||
}, Promise.resolve([]));
|
}, Promise.resolve([]));
|
||||||
|
@ -625,7 +627,7 @@ 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} '${scene.entityName}' scene "${scene.title}"`);
|
console.log(`Loaded ${index}/${array.length} '${scene.entityName}' scene "${scene.title}"`);
|
||||||
|
|
||||||
return acc.concat(!!scene);
|
return acc.concat(!!scene);
|
||||||
}, Promise.resolve([]));
|
}, Promise.resolve([]));
|
||||||
|
|
Loading…
Reference in New Issue