Scraping all actor release pages for Gamma. Improved actor matching for Gamma API.
This commit is contained in:
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user