forked from DebaucheryLibrarian/traxxx
Fixed Team Skeet API URL, added Brat Tamer.
This commit is contained in:
parent
15896d4c5b
commit
b7535a3151
|
@ -18160,6 +18160,15 @@ const sites = [
|
||||||
parameters: { id: 'selects' },
|
parameters: { id: 'selects' },
|
||||||
parent: 'teamskeet',
|
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 */
|
/* TEAM SKEET cross-over */
|
||||||
{
|
{
|
||||||
slug: 'tshobybuchanon',
|
slug: 'tshobybuchanon',
|
||||||
|
|
|
@ -127,7 +127,7 @@ function scrapeProfile(actor, entity, parameters) {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function fetchLatest(channel, page = 1, { 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) {
|
if (res.ok) {
|
||||||
return scrapeAll(res.body.hits.hits.map(({ _source: scene }) => scene), channel, parameters);
|
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'
|
const res = await http.get(parameters.layout === 'organic'
|
||||||
? `https://store.psmcdn.net/${parameters.endpoint}/moviesContent/${sceneSlug}.json`
|
? `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) {
|
if (res.ok && res.body.found) {
|
||||||
return scrapeScene(res.body._source, channel, parameters);
|
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 = format(parameters.profiles, { slug: baseActor.slug });
|
||||||
const url = parameters.layout === 'organic'
|
const url = parameters.layout === 'organic'
|
||||||
? `https://store.psmcdn.net/${parameters.endpoint}/modelsContent/${baseActor.slug}.json`
|
? `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);
|
const res = await qu.get(url);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue