Added Cliff Media (Vanessa Cliff).

This commit is contained in:
DebaucheryLibrarian
2024-08-21 01:03:53 +02:00
parent 91574d2e5b
commit 8aeee8eea6
4 changed files with 78 additions and 12 deletions

View File

@@ -28,7 +28,7 @@ function scrapeAll(scenes) {
});
}
function scrapeScene({ query }, url) {
function scrapeScene({ query }, { url }) {
const release = {};
release.entryId = new URL(url).pathname.match(/\/scene\/(\d+)/)[1];
@@ -70,16 +70,6 @@ async function fetchLatest(channel, page = 1) {
return res.status;
}
async function fetchScene(url, channel) {
const res = await unprint.get(url);
if (res.ok) {
return scrapeScene(res.context, url, channel);
}
return res.status;
}
async function fetchProfile({ name: actorName }, entity, include) {
const url = `${entity.url}/actors/${slugify(actorName, '_')}`;
const res = await unprint.get(url);
@@ -93,6 +83,6 @@ async function fetchProfile({ name: actorName }, entity, include) {
module.exports = {
fetchLatest,
fetchScene,
fetchProfile,
scrapeScene,
};