[scraper] fix rutor starting page

This commit is contained in:
TheBeastLT
2021-02-15 14:09:50 +01:00
parent 180668821c
commit 991db7432c
3 changed files with 3634 additions and 15 deletions

View File

@@ -62,7 +62,7 @@ async function scrapeLatestTorrents() {
.then(entries => entries.reduce((a, b) => a.concat(b), []));
}
async function scrapeLatestTorrentsForCategory(category, page = 185) {
async function scrapeLatestTorrentsForCategory(category, page = 1) {
console.log(`Scrapping ${NAME} ${category} category page ${page}`);
return api_limiter.schedule(() => rutor.browse({ category, page }))
.catch(error => {