Scraping all actor release pages for Gamma. Improved actor matching for Gamma API.

This commit is contained in:
2020-02-07 01:48:21 +01:00
parent 5fc56308d2
commit ea9c2dfe67
3 changed files with 47 additions and 16 deletions

View File

@@ -19,9 +19,17 @@ async function fetchScene(url, site) {
return release;
}
function getActorReleasesUrl(actorPath, page = 1) {
return `https://www.xempire.com/en/videos/xempire/latest/${page}/All-Categories/0${actorPath}`;
}
async function networkFetchProfile(actorName, siteSlug) {
return fetchProfile(actorName, siteSlug, null, getActorReleasesUrl);
}
module.exports = {
fetchLatest,
fetchProfile,
fetchProfile: networkFetchProfile,
fetchUpcoming,
fetchScene,
};