Compare commits

...

2 Commits

Author SHA1 Message Date
DebaucheryLibrarian
41b1f39752 1.249.5 2026-02-24 01:28:24 +01:00
DebaucheryLibrarian
c75c3e3ed9 Changed profile test to prefer network. Removed stray console from Gamma. 2026-02-24 01:28:22 +01:00
4 changed files with 7 additions and 6 deletions

4
package-lock.json generated
View File

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

View File

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

View File

@@ -922,6 +922,8 @@ function scrapeApiProfile(data, releases, siteSlug) {
if (releases) profile.releases = releases.map((release) => `https://${siteSlug}.com/en/video/${release.url_title}/${release.clip_id}`);
console.log(profile);
return profile;
}
@@ -956,8 +958,6 @@ async function fetchApiProfile({ name: actorName }, context, include) {
encodeJSON: true,
});
console.log(res.status, res.body.results[0].hits[0]);
if (res.status === 200 && res.body.results[0].hits.length > 0) {
const actorData = res.body.results[0].hits.find((actor) => slugify(actor.name) === slugify(actorName));

View File

@@ -329,7 +329,8 @@ const validators = {
// profiler in this context is shorthand for profile scraper
async function init() {
const entitiesBySlug = await fetchEntitiesBySlug(Object.keys(actorScrapers), { types: ['channel', 'network', 'info'], prefer: 'channel' });
// Pride Studios needs prefer network, probably works bests for most Gamma sites. Establish which scrapers need channel and why.
const entitiesBySlug = await fetchEntitiesBySlug(Object.keys(actorScrapers), { types: ['channel', 'network', 'info'], prefer: 'network' });
await Object.entries(actorScrapers).reduce(async (chain, [entitySlug, scraper]) => {
await chain;