Changed --inspect to --report to avoid conflict with Node's own debug tools.

This commit is contained in:
DebaucheryLibrarian 2020-12-02 21:26:55 +01:00
parent f5939c81d3
commit be1821b9eb
5 changed files with 6 additions and 7 deletions

View File

@ -795,7 +795,7 @@ const tagPhotos = [
['facefucking', 3, 'Adriana Chechik in "Performing Magic Butt Tricks With Jules Jordan. What Will Disappear In Her Ass?" for Jules Jordan'], ['facefucking', 3, 'Adriana Chechik in "Performing Magic Butt Tricks With Jules Jordan. What Will Disappear In Her Ass?" for Jules Jordan'],
['fake-boobs', 14, 'Rikki Six for Dream Dolls'], ['fake-boobs', 14, 'Rikki Six for Dream Dolls'],
['fake-boobs', 2, 'Gia Milana in "Hot Anal Latina" for HardX'], ['fake-boobs', 2, 'Gia Milana in "Hot Anal Latina" for HardX'],
['fake-boobs', 17, 'Felina in "With Flors On The Floor" for LouisDeMirabert'], ['fake-boobs', 17, 'Felina in "With Flowers On The Floor" for LouisDeMirabert'],
['fake-boobs', 18, 'Ebony Godess for Action Girls'], ['fake-boobs', 18, 'Ebony Godess for Action Girls'],
['fake-boobs', 1, 'Lela Star in "Thick" for Jules Jordan'], ['fake-boobs', 1, 'Lela Star in "Thick" for Jules Jordan'],
['fake-boobs', 16, 'Marsha May in "Once You Go Black 7" for Jules Jordan'], ['fake-boobs', 16, 'Marsha May in "Once You Go Black 7" for Jules Jordan'],

View File

@ -1,6 +1,7 @@
'use strict'; 'use strict';
const config = require('config'); const config = require('config');
const util = require('util');
const Promise = require('bluebird'); const Promise = require('bluebird');
const moment = require('moment'); const moment = require('moment');
const blake2 = require('blake2'); const blake2 = require('blake2');
@ -731,8 +732,8 @@ async function scrapeActors(argNames) {
logger.info(`Scraped ${profiles.length} profiles`); logger.info(`Scraped ${profiles.length} profiles`);
if (argv.inspect) { if (argv.report) {
console.log(profiles); console.log(util.inspect(profiles, { depth: Infinity, colors: true }));
} }
if (argv.save) { if (argv.save) {

View File

@ -66,7 +66,7 @@ async function init() {
const movieScenes = argv.movieScenes ? deepMovies.map(movie => movie.scenes?.map(scene => ({ ...scene, entity: movie.entity }))).flat().filter(Boolean) : []; const movieScenes = argv.movieScenes ? deepMovies.map(movie => movie.scenes?.map(scene => ({ ...scene, entity: movie.entity }))).flat().filter(Boolean) : [];
const deepMovieScenes = argv.deep ? await fetchScenes(movieScenes) : movieScenes; const deepMovieScenes = argv.deep ? await fetchScenes(movieScenes) : movieScenes;
if (argv.inspect) { if (argv.report) {
console.log(util.inspect(deepScenes, { depth: Infinity, colors: true })); console.log(util.inspect(deepScenes, { depth: Infinity, colors: true }));
console.log(util.inspect(deepMovies, { depth: Infinity, colors: true })); console.log(util.inspect(deepMovies, { depth: Infinity, colors: true }));
} }

View File

@ -223,7 +223,7 @@ const { argv } = yargs
type: 'boolean', type: 'boolean',
default: true, default: true,
}) })
.option('inspect', { .option('report', {
describe: 'Show data in console.', describe: 'Show data in console.',
type: 'boolean', type: 'boolean',
default: false, default: false,

View File

@ -29,7 +29,6 @@ function scrapeAllA(scenes, channel) {
release.tags = query.cnts('.tags a'); release.tags = query.cnts('.tags a');
release.rating = query.number('.thumb-rating'); release.rating = query.number('.thumb-rating');
console.log(release);
return release; return release;
}); });
} }
@ -63,7 +62,6 @@ function scrapeSceneA({ query }, url, channel) {
release.trailer = query.url('a[href*="get_file/"], .download a'); release.trailer = query.url('a[href*="get_file/"], .download a');
console.log(release);
return release; return release;
} }