mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
[scraper] fixes cron expression
This commit is contained in:
@@ -22,7 +22,7 @@ const PROVIDERS = [
|
|||||||
// thepiratebayDumpScraper
|
// thepiratebayDumpScraper
|
||||||
// thepiratebayUnofficialDumpScraper
|
// thepiratebayUnofficialDumpScraper
|
||||||
];
|
];
|
||||||
const SCRAPE_CRON = process.env.SCRAPE_CRON || '* * 0/4 * * *';
|
const SCRAPE_CRON = process.env.SCRAPE_CRON || '0 0 */4 ? * *';
|
||||||
|
|
||||||
async function scrape() {
|
async function scrape() {
|
||||||
return PROVIDERS
|
return PROVIDERS
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ const Promises = require('../../lib/promises');
|
|||||||
const { createTorrentEntry, getStoredTorrentEntry, updateTorrentSeeders } = require('../../lib/torrentEntries');
|
const { createTorrentEntry, getStoredTorrentEntry, updateTorrentSeeders } = require('../../lib/torrentEntries');
|
||||||
|
|
||||||
const NAME = 'ThePirateBay';
|
const NAME = 'ThePirateBay';
|
||||||
const UNTIL_PAGE = 20;
|
const UNTIL_PAGE = 10;
|
||||||
|
|
||||||
const limiter = new Bottleneck({ maxConcurrent: 40 });
|
const limiter = new Bottleneck({ maxConcurrent: 40 });
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user