Enabled mobile album scraping for Burning Angel and Fame Digital.

This commit is contained in:
ThePendulum 2020-03-06 23:08:55 +01:00
parent 6be065c0cb
commit a579e3c88f
2 changed files with 7 additions and 1 deletions

View File

@ -107,6 +107,9 @@ const networks = [
name: 'Burning Angel',
url: 'https://www.burningangel.com',
description: 'BurningAngel.com features tattoo porn with punk girls, goths, emo and the best scene girl porn online! View Joanna Angel and all of her alt pornstars in rough sex videos and hardcore porn',
parameters: {
mobile: 'https://m.dpfanatics.com/en/video',
},
parent: 'gamma',
},
{
@ -155,6 +158,9 @@ const networks = [
name: 'Fame Digital',
url: 'https://www.famedigital.com',
description: 'Watch and download thousands of the best porn videos at FameDigital.com, the largest porn network on the web! The hottest teens, MILFs and more pornstars are all here!',
parameters: {
mobile: 'https://m.dpfanatics.com/en/video',
},
parent: 'gamma',
},
{

View File

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