Fixed parent entity relations in seed file. Fixed MindGeek scraper session URL determination.

This commit is contained in:
DebaucheryLibrarian 2021-01-05 16:27:20 +01:00
parent fd92e7e260
commit 9ca2ec6dd0
3 changed files with 5 additions and 4 deletions

View File

@ -540,7 +540,7 @@ exports.seed = knex => Promise.resolve()
url: network.url, url: network.url,
description: network.description, description: network.description,
parameters: network.parameters, parameters: network.parameters,
parent_id: parentNetworksBySlug[network.parent] || null, parent_id: parentNetworksBySlug[network.parent] || grandParentNetworksBySlug[network.parent] || null,
})); }));
const networkEntries = await upsert('entities', networksWithParent, ['slug', 'type'], knex); const networkEntries = await upsert('entities', networksWithParent, ['slug', 'type'], knex);

View File

@ -6719,10 +6719,11 @@ const sites = [
}, },
{ {
name: 'Tranny Surprise', name: 'Tranny Surprise',
slug: 'trannysurprise',
url: 'https://www.trannysurprise.com', url: 'https://www.trannysurprise.com',
description: 'If youre in the mood for graphic tranny porn, look no further than TrannySurprise.com. A sexy shemale is a thing of beauty, often possessing a voracious appetite for sex. Reality Kings is home to some of the most incredible transsexual pornstars on the net. Watch them stroke their huge dicks and massage their voluminous ball sacks in our full-length HD videos. All these goddesses want to do is suck dick until it erupts in their wide open mouths. Cum swallowing is their specialty so enjoy our scenes full of creamy jizz loads overflowing onto their giant tits and firm stomachs. These nude RK shemales live to get rimjobs before getting drilled by gigantic dicks. Messy creampies are usually how their nights end so witness the torrid fuck marathons leading up to juicy orgasms. Tranny Surprise features sensual ladyboys that know just how to please anyone looking to take a walk on the wild side. Premium porno is what you deserve so eat it all up with our luscious, busty trannies. Long legs, tight asses, toned physiques, and a healthy dose of raw animal passion is what our “chicks with dicks” deliver in every one of our erotic films.', description: 'If youre in the mood for graphic tranny porn, look no further than TrannySurprise.com. A sexy shemale is a thing of beauty, often possessing a voracious appetite for sex. Reality Kings is home to some of the most incredible transsexual pornstars on the net. Watch them stroke their huge dicks and massage their voluminous ball sacks in our full-length HD videos. All these goddesses want to do is suck dick until it erupts in their wide open mouths. Cum swallowing is their specialty so enjoy our scenes full of creamy jizz loads overflowing onto their giant tits and firm stomachs. These nude RK shemales live to get rimjobs before getting drilled by gigantic dicks. Messy creampies are usually how their nights end so witness the torrid fuck marathons leading up to juicy orgasms. Tranny Surprise features sensual ladyboys that know just how to please anyone looking to take a walk on the wild side. Premium porno is what you deserve so eat it all up with our luscious, busty trannies. Long legs, tight asses, toned physiques, and a healthy dose of raw animal passion is what our “chicks with dicks” deliver in every one of our erotic films.',
tags: ['transsexual'],
parameters: { native: true }, parameters: { native: true },
slug: 'trannysurprise',
parent: 'realitykings', parent: 'realitykings',
}, },
{ {

View File

@ -86,7 +86,7 @@ function scrapeLatestX(data, site, filterChannel) {
} }
async function scrapeLatest(items, site, filterChannel) { async function scrapeLatest(items, site, filterChannel) {
const latestReleases = await Promise.all(items.map(async data => scrapeLatestX(data, site, filterChannel))); const latestReleases = items.map(data => scrapeLatestX(data, site, filterChannel));
return latestReleases.filter(Boolean); return latestReleases.filter(Boolean);
} }
@ -148,7 +148,7 @@ async function getSession(site) {
const session = http.session({ cookieJar }); const session = http.session({ cookieJar });
// const res = await session.get(url); // const res = await session.get(url);
const sessionUrl = site.parameters?.siteId && !(site.parameters?.childSession || site.parent?.parameters?.childSession) const sessionUrl = site.parameters?.siteId && !(site.parameters?.native || site.parameters?.childSession || site.parent?.parameters?.childSession)
? site.parent.url ? site.parent.url
: site.url; : site.url;