Allowing mobile parameter to be set on Gamma network. Added mobile to 21Naturals and 21Sextreme, moved 21Sextury mobile to network.

This commit is contained in:
ThePendulum 2020-03-06 19:26:23 +01:00
parent 19f46d4d86
commit 96eef822d6
3 changed files with 9 additions and 24 deletions

View File

@ -39,6 +39,9 @@ const networks = [
name: '21Sextreme', name: '21Sextreme',
url: 'https://www.21sextreme.com', url: 'https://www.21sextreme.com',
description: 'Welcome to 21Sextreme.com, your portal to fisting porn, old and young lesbians, horny grannies & extreme BDSM featuring the best Euro & American Pornstars', description: 'Welcome to 21Sextreme.com, your portal to fisting porn, old and young lesbians, horny grannies & extreme BDSM featuring the best Euro & American Pornstars',
parameters: {
mobile: 'https://m.dpfanatics.com/en/video',
},
parent: 'gamma', parent: 'gamma',
}, },
{ {
@ -46,6 +49,9 @@ const networks = [
name: '21Naturals', name: '21Naturals',
url: 'https://www.21naturals.com', url: 'https://www.21naturals.com',
description: 'Welcome to 21Naturals.com, the porn network featuring the hottest pornstars from all over the world in all natural porn and erotic sex videos. Watch thousands of girls with natural tits', description: 'Welcome to 21Naturals.com, the porn network featuring the hottest pornstars from all over the world in all natural porn and erotic sex videos. Watch thousands of girls with natural tits',
parameters: {
mobile: 'https://m.dpfanatics.com/en/video',
},
parent: 'gamma', parent: 'gamma',
}, },
{ {

View File

@ -156,7 +156,6 @@ const sites = [
network: '21sextury', network: '21sextury',
parameters: { parameters: {
referer: 'https://www.21sextury.com', referer: 'https://www.21sextury.com',
mobile: 'https://m.analteenangels.com/en/video',
}, },
}, },
{ {
@ -167,7 +166,6 @@ const sites = [
network: '21sextury', network: '21sextury',
parameters: { parameters: {
networkReferer: true, networkReferer: true,
mobile: 'https://m.assholefever.com/en/video',
}, },
}, },
{ {
@ -177,7 +175,6 @@ const sites = [
parameters: { parameters: {
referer: 'https://www.21sextury.com', referer: 'https://www.21sextury.com',
scene: 'https://www.21sextury.com/en/video', scene: 'https://www.21sextury.com/en/video',
mobile: 'https://m.dpfanatics.com/en/video',
photos: 'https://www.21sextury.com/en/photo', photos: 'https://www.21sextury.com/en/photo',
}, },
}, },
@ -188,7 +185,6 @@ const sites = [
parameters: { parameters: {
referer: 'https://www.21sextury.com', referer: 'https://www.21sextury.com',
scene: 'https://www.21sextury.com/en/video', scene: 'https://www.21sextury.com/en/video',
mobile: 'https://m.dpfanatics.com/en/video',
photos: 'https://www.21sextury.com/en/photo', photos: 'https://www.21sextury.com/en/photo',
}, },
}, },
@ -199,7 +195,6 @@ const sites = [
parameters: { parameters: {
referer: 'https://www.21sextury.com', referer: 'https://www.21sextury.com',
scene: 'https://www.21sextury.com/en/video', scene: 'https://www.21sextury.com/en/video',
mobile: 'https://m.dpfanatics.com/en/video',
photos: 'https://www.21sextury.com/en/photo', photos: 'https://www.21sextury.com/en/photo',
}, },
}, },
@ -211,7 +206,6 @@ const sites = [
network: '21sextury', network: '21sextury',
parameters: { parameters: {
referer: 'https://www.21sextury.com', referer: 'https://www.21sextury.com',
mobile: 'https://m.dpfanatics.com/en/video',
}, },
}, },
{ {
@ -223,7 +217,6 @@ const sites = [
parameters: { parameters: {
referer: 'https://www.21sextury.com', referer: 'https://www.21sextury.com',
scene: 'https://www.21sextury.com/en/video', scene: 'https://www.21sextury.com/en/video',
mobile: 'https://m.footsiebabes.com/en/video',
photos: 'https://www.21sextury.com/en/photo', photos: 'https://www.21sextury.com/en/photo',
}, },
}, },
@ -234,7 +227,6 @@ const sites = [
parameters: { parameters: {
referer: 'https://www.21sextury.com', referer: 'https://www.21sextury.com',
scene: 'https://www.21sextury.com/en/video', scene: 'https://www.21sextury.com/en/video',
mobile: 'https://m.dpfanatics.com/en/video',
photos: 'https://www.21sextury.com/en/photo', photos: 'https://www.21sextury.com/en/photo',
}, },
}, },
@ -246,7 +238,6 @@ const sites = [
network: '21sextury', network: '21sextury',
parameters: { parameters: {
referer: 'https://www.21sextury.com', referer: 'https://www.21sextury.com',
mobile: 'https://m.lezcuties.com/en/video',
}, },
}, },
{ {
@ -256,7 +247,6 @@ const sites = [
parameters: { parameters: {
referer: 'https://www.21sextury.com', referer: 'https://www.21sextury.com',
scene: 'https://www.21sextury.com/en/video', scene: 'https://www.21sextury.com/en/video',
mobile: 'https://m.dpfanatics.com/en/video',
photos: 'https://www.21sextury.com/en/photo', photos: 'https://www.21sextury.com/en/photo',
}, },
}, },
@ -267,7 +257,6 @@ const sites = [
parameters: { parameters: {
referer: 'https://www.21sextury.com', referer: 'https://www.21sextury.com',
scene: 'https://www.21sextury.com/en/video', scene: 'https://www.21sextury.com/en/video',
mobile: 'https://m.dpfanatics.com/en/video',
photos: 'https://www.21sextury.com/en/photo', photos: 'https://www.21sextury.com/en/photo',
}, },
}, },
@ -278,7 +267,6 @@ const sites = [
parameters: { parameters: {
referer: 'https://www.21sextury.com', referer: 'https://www.21sextury.com',
scene: 'https://www.21sextury.com/en/video', scene: 'https://www.21sextury.com/en/video',
mobile: 'https://m.dpfanatics.com/en/video',
photos: 'https://www.21sextury.com/en/photo', photos: 'https://www.21sextury.com/en/photo',
}, },
}, },
@ -289,7 +277,6 @@ const sites = [
parameters: { parameters: {
referer: 'https://www.21sextury.com', referer: 'https://www.21sextury.com',
scene: 'https://www.21sextury.com/en/video', scene: 'https://www.21sextury.com/en/video',
mobile: 'https://m.dpfanatics.com/en/video',
photos: 'https://www.21sextury.com/en/photo', photos: 'https://www.21sextury.com/en/photo',
}, },
}, },
@ -300,7 +287,6 @@ const sites = [
parameters: { parameters: {
referer: 'https://www.21sextury.com', referer: 'https://www.21sextury.com',
scene: 'https://www.21sextury.com/en/video', scene: 'https://www.21sextury.com/en/video',
mobile: 'https://m.dpfanatics.com/en/video',
photos: 'https://www.21sextury.com/en/photo', photos: 'https://www.21sextury.com/en/photo',
}, },
}, },
@ -311,7 +297,6 @@ const sites = [
parameters: { parameters: {
referer: 'https://www.21sextury.com', referer: 'https://www.21sextury.com',
scene: 'https://www.21sextury.com/en/video', scene: 'https://www.21sextury.com/en/video',
mobile: 'https://m.dpfanatics.com/en/video',
photos: 'https://www.21sextury.com/en/photo', photos: 'https://www.21sextury.com/en/photo',
}, },
}, },
@ -322,7 +307,6 @@ const sites = [
parameters: { parameters: {
referer: 'https://www.21sextury.com', referer: 'https://www.21sextury.com',
scene: 'https://www.21sextury.com/en/video', scene: 'https://www.21sextury.com/en/video',
mobile: 'https://m.dpfanatics.com/en/video',
photos: 'https://www.21sextury.com/en/photo', photos: 'https://www.21sextury.com/en/photo',
}, },
}, },
@ -333,7 +317,6 @@ const sites = [
parameters: { parameters: {
referer: 'https://www.21sextury.com', referer: 'https://www.21sextury.com',
scene: 'https://www.21sextury.com/en/video', scene: 'https://www.21sextury.com/en/video',
mobile: 'https://m.dpfanatics.com/en/video',
photos: 'https://www.21sextury.com/en/photo', photos: 'https://www.21sextury.com/en/photo',
}, },
}, },
@ -344,7 +327,6 @@ const sites = [
parameters: { parameters: {
referer: 'https://www.21sextury.com', referer: 'https://www.21sextury.com',
scene: 'https://www.21sextury.com/en/video', scene: 'https://www.21sextury.com/en/video',
mobile: 'https://m.dpfanatics.com/en/video',
photos: 'https://www.21sextury.com/en/photo', photos: 'https://www.21sextury.com/en/photo',
}, },
}, },
@ -355,7 +337,6 @@ const sites = [
parameters: { parameters: {
referer: 'https://www.21sextury.com', referer: 'https://www.21sextury.com',
scene: 'https://www.21sextury.com/en/video', scene: 'https://www.21sextury.com/en/video',
mobile: 'https://m.dpfanatics.com/en/video',
photos: 'https://www.21sextury.com/en/photo', photos: 'https://www.21sextury.com/en/photo',
}, },
}, },
@ -366,7 +347,6 @@ const sites = [
parameters: { parameters: {
referer: 'https://www.21sextury.com', referer: 'https://www.21sextury.com',
scene: 'https://www.21sextury.com/en/video', scene: 'https://www.21sextury.com/en/video',
mobile: 'https://m.dpfanatics.com/en/video',
photos: 'https://www.21sextury.com/en/photo', photos: 'https://www.21sextury.com/en/photo',
}, },
}, },
@ -377,7 +357,6 @@ const sites = [
parameters: { parameters: {
referer: 'https://www.21sextury.com', referer: 'https://www.21sextury.com',
scene: 'https://www.21sextury.com/en/video', scene: 'https://www.21sextury.com/en/video',
mobile: 'https://m.dpfanatics.com/en/video',
photos: 'https://www.21sextury.com/en/photo', photos: 'https://www.21sextury.com/en/photo',
}, },
}, },

View File

@ -467,11 +467,11 @@ async function fetchUpcoming(site) {
return scrapeAll(res.body.toString(), site, null, false); return scrapeAll(res.body.toString(), site, null, false);
} }
function getDeepUrl(url, site, release, mobile = false) { function getDeepUrl(url, site, release, mobile) {
const pathname = release?.path || new URL(url).pathname; const pathname = release?.path || new URL(url).pathname;
if (mobile) { if (mobile) {
return `${site.parameters.mobile}${pathname.replace('/en/video', '')}`; return `${mobile}${pathname.replace('/en/video', '')}`;
} }
if (site.parameters?.deep === 'network') { if (site.parameters?.deep === 'network') {
@ -491,7 +491,7 @@ async function fetchScene(url, site, release) {
} }
const deepUrl = getDeepUrl(url, site, release); const deepUrl = getDeepUrl(url, site, release);
const mobileUrl = site.parameters?.mobile && getDeepUrl(url, site, release, true); const mobileUrl = getDeepUrl(url, site, release, site.parameters?.mobile || site.network.parameters?.mobile);
if (deepUrl) { if (deepUrl) {
const [res, mobileRes] = await Promise.all([ const [res, mobileRes] = await Promise.all([