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:
parent
19f46d4d86
commit
96eef822d6
|
@ -39,6 +39,9 @@ const networks = [
|
|||
name: '21Sextreme',
|
||||
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',
|
||||
parameters: {
|
||||
mobile: 'https://m.dpfanatics.com/en/video',
|
||||
},
|
||||
parent: 'gamma',
|
||||
},
|
||||
{
|
||||
|
@ -46,6 +49,9 @@ const networks = [
|
|||
name: '21Naturals',
|
||||
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',
|
||||
parameters: {
|
||||
mobile: 'https://m.dpfanatics.com/en/video',
|
||||
},
|
||||
parent: 'gamma',
|
||||
},
|
||||
{
|
||||
|
|
|
@ -156,7 +156,6 @@ const sites = [
|
|||
network: '21sextury',
|
||||
parameters: {
|
||||
referer: 'https://www.21sextury.com',
|
||||
mobile: 'https://m.analteenangels.com/en/video',
|
||||
},
|
||||
},
|
||||
{
|
||||
|
@ -167,7 +166,6 @@ const sites = [
|
|||
network: '21sextury',
|
||||
parameters: {
|
||||
networkReferer: true,
|
||||
mobile: 'https://m.assholefever.com/en/video',
|
||||
},
|
||||
},
|
||||
{
|
||||
|
@ -177,7 +175,6 @@ const sites = [
|
|||
parameters: {
|
||||
referer: 'https://www.21sextury.com',
|
||||
scene: 'https://www.21sextury.com/en/video',
|
||||
mobile: 'https://m.dpfanatics.com/en/video',
|
||||
photos: 'https://www.21sextury.com/en/photo',
|
||||
},
|
||||
},
|
||||
|
@ -188,7 +185,6 @@ const sites = [
|
|||
parameters: {
|
||||
referer: 'https://www.21sextury.com',
|
||||
scene: 'https://www.21sextury.com/en/video',
|
||||
mobile: 'https://m.dpfanatics.com/en/video',
|
||||
photos: 'https://www.21sextury.com/en/photo',
|
||||
},
|
||||
},
|
||||
|
@ -199,7 +195,6 @@ const sites = [
|
|||
parameters: {
|
||||
referer: 'https://www.21sextury.com',
|
||||
scene: 'https://www.21sextury.com/en/video',
|
||||
mobile: 'https://m.dpfanatics.com/en/video',
|
||||
photos: 'https://www.21sextury.com/en/photo',
|
||||
},
|
||||
},
|
||||
|
@ -211,7 +206,6 @@ const sites = [
|
|||
network: '21sextury',
|
||||
parameters: {
|
||||
referer: 'https://www.21sextury.com',
|
||||
mobile: 'https://m.dpfanatics.com/en/video',
|
||||
},
|
||||
},
|
||||
{
|
||||
|
@ -223,7 +217,6 @@ const sites = [
|
|||
parameters: {
|
||||
referer: 'https://www.21sextury.com',
|
||||
scene: 'https://www.21sextury.com/en/video',
|
||||
mobile: 'https://m.footsiebabes.com/en/video',
|
||||
photos: 'https://www.21sextury.com/en/photo',
|
||||
},
|
||||
},
|
||||
|
@ -234,7 +227,6 @@ const sites = [
|
|||
parameters: {
|
||||
referer: 'https://www.21sextury.com',
|
||||
scene: 'https://www.21sextury.com/en/video',
|
||||
mobile: 'https://m.dpfanatics.com/en/video',
|
||||
photos: 'https://www.21sextury.com/en/photo',
|
||||
},
|
||||
},
|
||||
|
@ -246,7 +238,6 @@ const sites = [
|
|||
network: '21sextury',
|
||||
parameters: {
|
||||
referer: 'https://www.21sextury.com',
|
||||
mobile: 'https://m.lezcuties.com/en/video',
|
||||
},
|
||||
},
|
||||
{
|
||||
|
@ -256,7 +247,6 @@ const sites = [
|
|||
parameters: {
|
||||
referer: 'https://www.21sextury.com',
|
||||
scene: 'https://www.21sextury.com/en/video',
|
||||
mobile: 'https://m.dpfanatics.com/en/video',
|
||||
photos: 'https://www.21sextury.com/en/photo',
|
||||
},
|
||||
},
|
||||
|
@ -267,7 +257,6 @@ const sites = [
|
|||
parameters: {
|
||||
referer: 'https://www.21sextury.com',
|
||||
scene: 'https://www.21sextury.com/en/video',
|
||||
mobile: 'https://m.dpfanatics.com/en/video',
|
||||
photos: 'https://www.21sextury.com/en/photo',
|
||||
},
|
||||
},
|
||||
|
@ -278,7 +267,6 @@ const sites = [
|
|||
parameters: {
|
||||
referer: 'https://www.21sextury.com',
|
||||
scene: 'https://www.21sextury.com/en/video',
|
||||
mobile: 'https://m.dpfanatics.com/en/video',
|
||||
photos: 'https://www.21sextury.com/en/photo',
|
||||
},
|
||||
},
|
||||
|
@ -289,7 +277,6 @@ const sites = [
|
|||
parameters: {
|
||||
referer: 'https://www.21sextury.com',
|
||||
scene: 'https://www.21sextury.com/en/video',
|
||||
mobile: 'https://m.dpfanatics.com/en/video',
|
||||
photos: 'https://www.21sextury.com/en/photo',
|
||||
},
|
||||
},
|
||||
|
@ -300,7 +287,6 @@ const sites = [
|
|||
parameters: {
|
||||
referer: 'https://www.21sextury.com',
|
||||
scene: 'https://www.21sextury.com/en/video',
|
||||
mobile: 'https://m.dpfanatics.com/en/video',
|
||||
photos: 'https://www.21sextury.com/en/photo',
|
||||
},
|
||||
},
|
||||
|
@ -311,7 +297,6 @@ const sites = [
|
|||
parameters: {
|
||||
referer: 'https://www.21sextury.com',
|
||||
scene: 'https://www.21sextury.com/en/video',
|
||||
mobile: 'https://m.dpfanatics.com/en/video',
|
||||
photos: 'https://www.21sextury.com/en/photo',
|
||||
},
|
||||
},
|
||||
|
@ -322,7 +307,6 @@ const sites = [
|
|||
parameters: {
|
||||
referer: 'https://www.21sextury.com',
|
||||
scene: 'https://www.21sextury.com/en/video',
|
||||
mobile: 'https://m.dpfanatics.com/en/video',
|
||||
photos: 'https://www.21sextury.com/en/photo',
|
||||
},
|
||||
},
|
||||
|
@ -333,7 +317,6 @@ const sites = [
|
|||
parameters: {
|
||||
referer: 'https://www.21sextury.com',
|
||||
scene: 'https://www.21sextury.com/en/video',
|
||||
mobile: 'https://m.dpfanatics.com/en/video',
|
||||
photos: 'https://www.21sextury.com/en/photo',
|
||||
},
|
||||
},
|
||||
|
@ -344,7 +327,6 @@ const sites = [
|
|||
parameters: {
|
||||
referer: 'https://www.21sextury.com',
|
||||
scene: 'https://www.21sextury.com/en/video',
|
||||
mobile: 'https://m.dpfanatics.com/en/video',
|
||||
photos: 'https://www.21sextury.com/en/photo',
|
||||
},
|
||||
},
|
||||
|
@ -355,7 +337,6 @@ const sites = [
|
|||
parameters: {
|
||||
referer: 'https://www.21sextury.com',
|
||||
scene: 'https://www.21sextury.com/en/video',
|
||||
mobile: 'https://m.dpfanatics.com/en/video',
|
||||
photos: 'https://www.21sextury.com/en/photo',
|
||||
},
|
||||
},
|
||||
|
@ -366,7 +347,6 @@ const sites = [
|
|||
parameters: {
|
||||
referer: 'https://www.21sextury.com',
|
||||
scene: 'https://www.21sextury.com/en/video',
|
||||
mobile: 'https://m.dpfanatics.com/en/video',
|
||||
photos: 'https://www.21sextury.com/en/photo',
|
||||
},
|
||||
},
|
||||
|
@ -377,7 +357,6 @@ const sites = [
|
|||
parameters: {
|
||||
referer: 'https://www.21sextury.com',
|
||||
scene: 'https://www.21sextury.com/en/video',
|
||||
mobile: 'https://m.dpfanatics.com/en/video',
|
||||
photos: 'https://www.21sextury.com/en/photo',
|
||||
},
|
||||
},
|
||||
|
|
|
@ -467,11 +467,11 @@ async function fetchUpcoming(site) {
|
|||
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;
|
||||
|
||||
if (mobile) {
|
||||
return `${site.parameters.mobile}${pathname.replace('/en/video', '')}`;
|
||||
return `${mobile}${pathname.replace('/en/video', '')}`;
|
||||
}
|
||||
|
||||
if (site.parameters?.deep === 'network') {
|
||||
|
@ -491,7 +491,7 @@ async function fetchScene(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) {
|
||||
const [res, mobileRes] = await Promise.all([
|
||||
|
|
Loading…
Reference in New Issue