Added deep scene force parameter to MindGeek scraper.

This commit is contained in:
DebaucheryLibrarian 2022-03-27 00:27:26 +01:00
parent 43af7ba777
commit e93e8ace5c
2 changed files with 2 additions and 1 deletions

View File

@ -225,6 +225,7 @@ const networks = [
description: 'DigitalPlayground.com is the leader in high quality adult blockbuster movies and award winning sex parodies that feature the most exclusive pornstars online! Adult Film Database of adult movies.', description: 'DigitalPlayground.com is the leader in high quality adult blockbuster movies and award winning sex parodies that feature the most exclusive pornstars online! Adult Film Database of adult movies.',
parameters: { parameters: {
actorPath: 'modelprofile', actorPath: 'modelprofile',
forceDeep: true, // Digital Playground has movie and series information not available in the latest updates API
}, },
parent: 'mindgeek', parent: 'mindgeek',
}, },

View File

@ -345,7 +345,7 @@ async function fetchUpcoming(site, page, options) {
} }
async function fetchRelease(url, site, baseScene, options) { async function fetchRelease(url, site, baseScene, options) {
if (baseScene?.entryId && !baseScene.shallow) { if (baseScene?.entryId && !baseScene.shallow && !options.parameters.forceDeep) {
// overview and deep data is the same, don't hit server unnecessarily // overview and deep data is the same, don't hit server unnecessarily
return baseScene; return baseScene;
} }