Compare commits

..

2 Commits

Author SHA1 Message Date
DebaucheryLibrarian 2885a82f8e 1.244.68 2025-08-21 03:34:57 +02:00
DebaucheryLibrarian c23b3a1e19 Fixed Team Skeet search API returning generic results. 2025-08-21 03:34:55 +02:00
4 changed files with 10 additions and 8 deletions

4
package-lock.json generated
View File

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

View File

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

View File

@ -12538,6 +12538,7 @@ const sites = [
url: 'https://www.familystrokes.com',
parameters: {
// endpoint: 'FS-organic-1rstmyhj44',
id: 'family-strokes',
layout: 'search',
endpoint: 'familybundle',
},

View File

@ -6,15 +6,16 @@ const slugify = require('../utils/slugify');
const { lbsToKg, feetInchesToCm } = require('../utils/convert');
function getChannelSlug(channelName, entity) {
if (entity.type === 'channel') {
return entity.slug;
}
if (!channelName) {
return null;
}
const channelSlug = slugify(channelName, '', { removePunctuation: true });
if (entity.type === 'channel') {
return channelSlug;
}
const channel = entity.children.find((child) => new RegExp(channelSlug).test(child.slug));
return channel?.slug || null;
@ -156,7 +157,7 @@ async function fetchLatestOrganic(channel, page, context) {
}
async function fetchLatestSearch(channel, page = 1, { parameters }) {
const res = await http.get(`https://tours-store.psmcdn.net/${parameters.endpoint}/_search?sort=publishedDate:desc&q=(type:video%20AND%20isXSeries:false%20)&size=30&from=${(page - 1) * 30}`);
const res = await http.get(`https://tours-store.psmcdn.net/${parameters.endpoint}/_search?q=(site.seo.seoSlug:%22${parameters.id}%22%20AND%20type:video)&sort=publishedDate:desc&size=30&from=${(page - 1) * 30}`);
if (res.ok) {
return scrapeAll(res.body.hits.hits.map(({ _source: scene }) => scene), channel, parameters);