diff --git a/src/scrapers/traxxx.js b/src/scrapers/traxxx.js index 5b87cc60..cb8d17d7 100755 --- a/src/scrapers/traxxx.js +++ b/src/scrapers/traxxx.js @@ -294,10 +294,10 @@ async function fetchLatest(entity, page, options) { release.photos = photos.map((photo) => `http://${config.web.host}:${config.web.port}/img/${photo}?id=${nanoid()}`); } - release.tags = shuffle(options.beforeFetchLatest.tags).slice(0, faker.datatype.number({ min: 3, max: 20 })); + release.tags = shuffle(options.beforeFetchLatest.tags).slice(0, faker.number.int({ min: 3, max: 20 })); // release.actors = [...generateActors(release), null]; // include empty actor to ensure proper handling - release.actors = shuffle(options.beforeFetchLatest.actors).slice(0, faker.datatype.number(release.tags.some((tag) => ['dp', 'dap', 'gangbang'].includes(tag)) ? { min: 3, max: 6 } : { min: 2, max: 3 })); + release.actors = shuffle(options.beforeFetchLatest.actors).slice(0, faker.number.int(release.tags.some((tag) => ['dp', 'dap', 'gangbang'].includes(tag)) ? { min: 3, max: 6 } : { min: 2, max: 3 })); release.title = title(release);