Added actor scene URL parameter to Gamma scraper to phase out release URL function.

This commit is contained in:
DebaucheryLibrarian
2021-01-30 01:12:42 +01:00
parent d3d08b9c21
commit bfb5006e95
4 changed files with 29 additions and 19 deletions

View File

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