Compare commits

...

2 Commits

Author SHA1 Message Date
DebaucheryLibrarian 5b6911fd5c 1.226.7 2023-06-04 01:04:23 +02:00
DebaucheryLibrarian 33cab26d3b Fixed transfer status, moved media logging to debug level. 2023-06-04 01:04:21 +02:00
3 changed files with 8 additions and 6 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "traxxx", "name": "traxxx",
"version": "1.226.6", "version": "1.226.7",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "traxxx", "name": "traxxx",
"version": "1.226.6", "version": "1.226.7",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"@casl/ability": "^5.2.2", "@casl/ability": "^5.2.2",

View File

@ -1,6 +1,6 @@
{ {
"name": "traxxx", "name": "traxxx",
"version": "1.226.6", "version": "1.226.7",
"description": "All the latest porn releases in one place", "description": "All the latest porn releases in one place",
"main": "src/app.js", "main": "src/app.js",
"scripts": { "scripts": {

View File

@ -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;
if (args.logLevel === 'debug') {
console.log('Transferring media', url); 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([]));