Fixed Team Skeet API URL, added Brat Tamer.

This commit is contained in:
DebaucheryLibrarian 2024-11-07 21:02:20 +01:00
parent 15896d4c5b
commit b7535a3151
2 changed files with 12 additions and 3 deletions

View File

@ -18160,6 +18160,15 @@ const sites = [
parameters: { id: 'selects' },
parent: 'teamskeet',
},
{
slug: 'brattamer',
name: 'Brat Tamer',
url: 'https://www.mylf.com/series/brat-tamer',
parent: 'teamskeet',
parameters: {
id: 'brat-tamer',
},
},
/* TEAM SKEET cross-over */
{
slug: 'tshobybuchanon',

View File

@ -127,7 +127,7 @@ function scrapeProfile(actor, entity, parameters) {
}
async function fetchLatest(channel, page = 1, { parameters }) {
const res = await http.get(`https://store2.psmcdn.net/${parameters.endpoint}-videoscontent/_search?q=site.seo.seoSlug:"${parameters.id}"&sort=publishedDate:desc&size=30&from=${(page - 1) * 30}`);
const res = await http.get(`https://tours-store.psmcdn.net/${parameters.endpoint}-videoscontent/_search?q=site.seo.seoSlug:"${parameters.id}"&sort=publishedDate:desc&size=30&from=${(page - 1) * 30}`);
if (res.ok) {
return scrapeAll(res.body.hits.hits.map(({ _source: scene }) => scene), channel, parameters);
@ -165,7 +165,7 @@ async function fetchScene(url, channel, baseScene, { parameters }) {
const res = await http.get(parameters.layout === 'organic'
? `https://store.psmcdn.net/${parameters.endpoint}/moviesContent/${sceneSlug}.json`
: `https://store2.psmcdn.net/${parameters.endpoint}-videoscontent/_doc/${sceneSlug}`);
: `https://tours-store.psmcdn.net/${parameters.endpoint}-videoscontent/_doc/${sceneSlug}`);
if (res.ok && res.body.found) {
return scrapeScene(res.body._source, channel, parameters);
@ -182,7 +182,7 @@ async function fetchProfile(baseActor, { entity, parameters }) {
// const url = format(parameters.profiles, { slug: baseActor.slug });
const url = parameters.layout === 'organic'
? `https://store.psmcdn.net/${parameters.endpoint}/modelsContent/${baseActor.slug}.json`
: `https://store2.psmcdn.net/${parameters.endpoint}-modelscontent/_doc/${baseActor.slug}`;
: `https://tours-store.psmcdn.net/${parameters.endpoint}-modelscontent/_doc/${baseActor.slug}`;
const res = await qu.get(url);