Added q scraping helper. Added Perfect Gonzo scraper.
This commit is contained in:
@@ -52,8 +52,10 @@ async function scrapeScene(scene, site, tokens) {
|
||||
entryId: scene.id,
|
||||
title: scene.title,
|
||||
duration: scene.length,
|
||||
tokens, // attach tokens to reduce number of requests required for deep fetching
|
||||
site,
|
||||
meta: {
|
||||
tokens, // attach tokens to reduce number of requests required for deep fetching
|
||||
},
|
||||
};
|
||||
|
||||
release.url = `${site.url}/scene/${release.entryId}/${slugify(release.title, true)}`;
|
||||
@@ -93,7 +95,7 @@ async function fetchLatest(site, page = 1) {
|
||||
}
|
||||
|
||||
async function fetchScene(url, site, release) {
|
||||
const { time, token } = release?.tokens || await fetchToken(site); // use attached tokens when deep fetching
|
||||
const { time, token } = release?.meta.tokens || await fetchToken(site); // use attached tokens when deep fetching
|
||||
const { pathname } = new URL(url);
|
||||
const entryId = pathname.split('/')[2];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user