Changed withReleases boolean to include object in Vixen and Fame Digital scrapers.

This commit is contained in:
2020-03-12 02:21:59 +01:00
parent 370605554b
commit 01b59f0a9b
2 changed files with 5 additions and 6 deletions

View File

@@ -214,14 +214,14 @@ async function fetchScene(url, site, baseRelease) {
return res.code;
}
async function fetchProfile(actorName, scraperSlug, site, withReleases) {
async function fetchProfile(actorName, scraperSlug, site, include) {
const origin = `https://www.${scraperSlug}.com`;
const actorSlug = slugify(actorName);
const url = `${origin}/api/${actorSlug}`;
const res = await get(url);
if (res.code === 200) {
return scrapeProfile(res.body.data, origin, withReleases);
return scrapeProfile(res.body.data, origin, include.scenes);
}
return null;