Fixed pagination in Amnesiac/Hentaied scraper.
This commit is contained in:
parent
4925295798
commit
889a13f206
|
@ -62,7 +62,7 @@ function scrapeScene({ query }, { url }) {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function fetchLatest(channel, page = 1) {
|
async function fetchLatest(channel, page = 1) {
|
||||||
const url = `${channel.url}/all-videos/${page}/`;
|
const url = `${channel.url}/all-videos/page/${page}/`;
|
||||||
const res = await unprint.get(url, { selectAll: '.catposts > div:not(.clearfix):not(.flexcont)' });
|
const res = await unprint.get(url, { selectAll: '.catposts > div:not(.clearfix):not(.flexcont)' });
|
||||||
|
|
||||||
if (res.ok) {
|
if (res.ok) {
|
||||||
|
|
Loading…
Reference in New Issue