Enabled mobile album fetching for Pure Taboo and Fantasy Massage.

This commit is contained in:
ThePendulum 2020-03-06 19:44:20 +01:00
parent 1896cd1472
commit 5d468b58fd
3 changed files with 10 additions and 14 deletions

View File

@ -145,6 +145,9 @@ const networks = [
slug: 'fantasymassage', slug: 'fantasymassage',
name: 'Fantasy Massage', name: 'Fantasy Massage',
url: 'https://www.fantasymassage.com', url: 'https://www.fantasymassage.com',
parameters: {
mobile: 'https://m.dpfanatics.com/en/video',
},
parent: 'gamma', parent: 'gamma',
}, },
{ {

View File

@ -1811,7 +1811,6 @@ const sites = [
parameters: { parameters: {
latest: 'https://www.fantasymassage.com/en/allvideos/allgirlmassage/AllCategories/0/AllPornstars/0/updates/', latest: 'https://www.fantasymassage.com/en/allvideos/allgirlmassage/AllCategories/0/AllPornstars/0/updates/',
upcoming: 'https://www.fantasymassage.com/en/allvideos/allgirlmassage/AllCategories/0/Actor/0/upcoming/', upcoming: 'https://www.fantasymassage.com/en/allvideos/allgirlmassage/AllCategories/0/Actor/0/upcoming/',
deep: 'network',
photos: 'https://www.fantasymassage.com/en/photo', photos: 'https://www.fantasymassage.com/en/photo',
}, },
}, },
@ -1823,7 +1822,6 @@ const sites = [
parameters: { parameters: {
latest: 'https://www.fantasymassage.com/en/allvideos/nurumassage/AllCategories/0/AllPornstars/0/updates/', latest: 'https://www.fantasymassage.com/en/allvideos/nurumassage/AllCategories/0/AllPornstars/0/updates/',
upcoming: 'https://www.fantasymassage.com/en/allvideos/nurumassage/AllCategories/0/Actor/0/upcoming/', upcoming: 'https://www.fantasymassage.com/en/allvideos/nurumassage/AllCategories/0/Actor/0/upcoming/',
deep: 'network',
photos: 'https://www.fantasymassage.com/en/photo', photos: 'https://www.fantasymassage.com/en/photo',
}, },
}, },
@ -1835,7 +1833,6 @@ const sites = [
parameters: { parameters: {
latest: 'https://www.fantasymassage.com/en/allvideos/trickyspa/AllCategories/0/AllPornstars/0/updates/', latest: 'https://www.fantasymassage.com/en/allvideos/trickyspa/AllCategories/0/AllPornstars/0/updates/',
upcoming: 'https://www.fantasymassage.com/en/allvideos/trickyspa/AllCategories/0/Actor/0/upcoming/', upcoming: 'https://www.fantasymassage.com/en/allvideos/trickyspa/AllCategories/0/Actor/0/upcoming/',
deep: 'network',
photos: 'https://www.fantasymassage.com/en/photo', photos: 'https://www.fantasymassage.com/en/photo',
}, },
}, },
@ -1847,7 +1844,6 @@ const sites = [
parameters: { parameters: {
latest: 'https://www.fantasymassage.com/en/allvideos/soapymassage/AllCategories/0/AllPornstars/0/updates/', latest: 'https://www.fantasymassage.com/en/allvideos/soapymassage/AllCategories/0/AllPornstars/0/updates/',
upcoming: 'https://www.fantasymassage.com/en/allvideos/soapymassage/AllCategories/0/Actor/0/upcoming/', upcoming: 'https://www.fantasymassage.com/en/allvideos/soapymassage/AllCategories/0/Actor/0/upcoming/',
deep: 'network',
photos: 'https://www.fantasymassage.com/en/photo', photos: 'https://www.fantasymassage.com/en/photo',
}, },
}, },
@ -1859,7 +1855,6 @@ const sites = [
parameters: { parameters: {
latest: 'https://www.fantasymassage.com/en/allvideos/milkingtable/AllCategories/0/AllPornstars/0/updates/', latest: 'https://www.fantasymassage.com/en/allvideos/milkingtable/AllCategories/0/AllPornstars/0/updates/',
upcoming: 'https://www.fantasymassage.com/en/allvideos/milkingtable/AllCategories/0/Actor/0/upcoming/', upcoming: 'https://www.fantasymassage.com/en/allvideos/milkingtable/AllCategories/0/Actor/0/upcoming/',
deep: 'network',
photos: 'https://www.fantasymassage.com/en/photo', photos: 'https://www.fantasymassage.com/en/photo',
}, },
}, },
@ -1871,7 +1866,6 @@ const sites = [
parameters: { parameters: {
latest: 'https://www.fantasymassage.com/en/allvideos/massage-parlor/AllCategories/0/AllPornstars/0/updates/', latest: 'https://www.fantasymassage.com/en/allvideos/massage-parlor/AllCategories/0/AllPornstars/0/updates/',
upcoming: 'https://www.fantasymassage.com/en/allvideos/massage-parlor/AllCategories/0/Actor/0/upcoming/', upcoming: 'https://www.fantasymassage.com/en/allvideos/massage-parlor/AllCategories/0/Actor/0/upcoming/',
deep: 'network',
photos: 'https://www.fantasymassage.com/en/photo', photos: 'https://www.fantasymassage.com/en/photo',
}, },
}, },
@ -4139,7 +4133,10 @@ const sites = [
description: 'PureTaboo.com is the ultimate site for family taboo porn, featuring submissive teens & virgins in rough sex videos in ultra 4k HD.', description: 'PureTaboo.com is the ultimate site for family taboo porn, featuring submissive teens & virgins in rough sex videos in ultra 4k HD.',
network: 'puretaboo', network: 'puretaboo',
priority: 1, priority: 1,
parameters: { independent: true }, parameters: {
independent: true,
mobile: 'https://m.dpfanatics.com/en/video',
},
}, },
{ {
name: 'Pretty Dirty', name: 'Pretty Dirty',

View File

@ -468,18 +468,14 @@ async function fetchUpcoming(site) {
} }
function getDeepUrl(url, site, release, mobile) { function getDeepUrl(url, site, release, mobile) {
const pathname = release?.path || new URL(url).pathname; const pathname = release?.path || new URL(url).pathname.replace('/en/video', '');
if (mobile) { if (mobile) {
return `${mobile}${pathname.replace('/en/video', '')}`; return `${mobile}${pathname}`;
}
if (site.parameters?.deep === 'network') {
return `${site.network.url}${pathname}`;
} }
if (site.parameters?.deep) { if (site.parameters?.deep) {
return `${site.parameters.deep}${pathname.replace('/en/video', '')}`; return `${site.parameters.deep}${pathname}`;
} }
return url; return url;