Compare commits

..

No commits in common. "5acc2c607bb0eca60ba897aa2b5a2133f506ae93" and "5c12122e047bf1c51f41098177e8247f5c46e3a5" have entirely different histories.

5 changed files with 6 additions and 73 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "traxxx",
"version": "1.245.7",
"version": "1.245.6",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "traxxx",
"version": "1.245.7",
"version": "1.245.6",
"license": "ISC",
"dependencies": {
"@aws-sdk/client-s3": "^3.458.0",

View File

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

View File

@ -137,7 +137,7 @@ const scrapers = {
julesjordan,
karups,
kellymadison,
'8kmembers': kellymadison,
'5kvids': kellymadison,
killergram,
kink,
// kinkvr: badoink,
@ -219,6 +219,7 @@ const scrapers = {
bamvisions,
bang,
bangbros: aylo,
bellesa,
bjraw: radical,
blacked: vixen,
blackedraw: vixen,
@ -271,7 +272,7 @@ const scrapers = {
julesjordan,
karups,
kellymadison,
'8kmembers': kellymadison,
'5kvids': kellymadison,
killergram,
kink,
kinkmen: kink,

View File

@ -1,21 +0,0 @@
{
"extends": "airbnb-base",
"parserOptions": {
"parser": "@babel/eslint-parser",
"sourceType": "script"
},
"rules": {
"strict": 0,
"indent": "off",
"no-tabs": "off",
"no-unused-vars": ["error", {"argsIgnorePattern": "^_"}],
"no-console": 0,
"max-len": 0,
"no-underscore-dangle": 0,
"default-param-last": 0,
"prefer-destructuring": "off",
"arrow-body-style": 0,
"template-curly-spacing": "off",
"object-curly-newline": "off"
}
}

View File

@ -1,47 +0,0 @@
'use strict';
const test = require('node:test');
const assert = require('node:assert/strict');
const argv = require('../src/argv');
const scrapers = require('../src/scrapers/scrapers');
const { fetchEntitiesBySlug } = require('../src/entities');
const actorScrapers = scrapers.actors;
// profiler in this context is shorthand for profile scraper
async function init() {
const entitiesBySlug = await fetchEntitiesBySlug(Object.keys(actorScrapers), { types: ['channel', 'network', 'info'], prefer: argv.prefer });
Object.entries(actorScrapers).reduce(async (chain, [entitySlug, scraper]) => {
await chain;
const entity = entitiesBySlug[entitySlug] || null;
const profilers = Array.from(new Set(Object.entries(scraper) // some layouts will use the same profiler
.flatMap(([fnKey, fnOrLayout]) => {
if (fnOrLayout.fetchProfile) {
// layout
return fnOrLayout.fetchProfile;
}
if (fnKey === 'fetchProfile') {
// primary
return fnOrLayout;
}
return null;
}).filter(Boolean)));
await test(`${entitySlug} (${entity?.name})`, async () => {
await test('has entity', () => assert.notEqual(entity, null));
await test('has profilers', () => assert.ok(profilers.length > 0));
await test('foo', () => {
assert.strictEqual(5, 5);
});
});
}, Promise.resolve());
}
init();