Fixed session reuse in Aylo scraper.

This commit is contained in:
DebaucheryLibrarian 2023-12-01 02:09:24 +01:00
parent 353fe6d6f8
commit 9ea317939b
2 changed files with 1 additions and 3 deletions

View File

@ -299,7 +299,7 @@ async function fetchLatest(site, page = 1, options) {
return null;
}
const { instanceToken } = options.beforeNetwork?.headers?.Instance
const { instanceToken } = options.beforeNetwork?.instanceToken
? options.beforeNetwork
: await getSession(site, options.parameters, url);

View File

@ -330,8 +330,6 @@ async function request(method = 'get', url, body, requestOptions = {}, limiter)
return bypassCloudflareRequest(url, method, body, withCloudflareBypass, options);
}
console.log(url, options);
const res = await (body
? http[method](url, body, options)
: http[method](url, options));