Matching URLs to entity using hostname rather than slug to minimize collisions. Fixed missing Cum Louder POV logo.

This commit is contained in:
DebaucheryLibrarian
2023-06-04 21:50:59 +02:00
parent 7e2840a00d
commit 164757ee26
55 changed files with 67 additions and 24 deletions

View File

@@ -22,6 +22,8 @@ function scrapeBlockLatest(scenes) {
release.teaser = qu.video();
console.log(release);
return release;
});
}
@@ -57,6 +59,15 @@ function scrapeClassicLatest(scenes) {
});
}
function scrapeScene({ query }) {
const release = {};
release.title = query.content('.indScene h2');
console.log(release);
return release;
}
async function fetchLatest(site, page = 1) {
if (!site.parameters) {
return null;
@@ -74,4 +85,6 @@ async function fetchLatest(site, page = 1) {
module.exports = {
fetchLatest,
scrapeScene,
useUnprint: true,
};