From b7535a31515bdc8b01458a97d88193913341ed15 Mon Sep 17 00:00:00 2001 From: DebaucheryLibrarian Date: Thu, 7 Nov 2024 21:02:20 +0100 Subject: [PATCH] Fixed Team Skeet API URL, added Brat Tamer. --- seeds/02_sites.js | 9 +++++++++ src/scrapers/teamskeet.js | 6 +++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/seeds/02_sites.js b/seeds/02_sites.js index 68824ff0..ba950ae5 100755 --- a/seeds/02_sites.js +++ b/seeds/02_sites.js @@ -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', diff --git a/src/scrapers/teamskeet.js b/src/scrapers/teamskeet.js index 561b6b50..2c2c9a29 100755 --- a/src/scrapers/teamskeet.js +++ b/src/scrapers/teamskeet.js @@ -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);