[scraper] fixes cron expression

This commit is contained in:
TheBeastLT
2020-03-17 08:28:41 +01:00
parent 8e67c5f40e
commit 7948f4877e
2 changed files with 2 additions and 2 deletions

View File

@@ -22,7 +22,7 @@ const PROVIDERS = [
// thepiratebayDumpScraper
// thepiratebayUnofficialDumpScraper
];
const SCRAPE_CRON = process.env.SCRAPE_CRON || '* * 0/4 * * *';
const SCRAPE_CRON = process.env.SCRAPE_CRON || '0 0 */4 ? * *';
async function scrape() {
return PROVIDERS

View File

@@ -7,7 +7,7 @@ const Promises = require('../../lib/promises');
const { createTorrentEntry, getStoredTorrentEntry, updateTorrentSeeders } = require('../../lib/torrentEntries');
const NAME = 'ThePirateBay';
const UNTIL_PAGE = 20;
const UNTIL_PAGE = 10;
const limiter = new Bottleneck({ maxConcurrent: 40 });