update seeders for new torrents

This commit is contained in:
TheBeastLT
2021-09-17 20:37:09 +02:00
parent b0029dcf5a
commit e4c4259ed8
4 changed files with 45 additions and 10 deletions

View File

@@ -1,10 +1,11 @@
const { scheduleScraping, scrapeAll } = require('./scraper')
const { scheduleUpdateSeeders } = require('./seeders')
const { scheduleUpdateSeeders, scheduleUpdateSeedersForNewTorrents } = require('./seeders')
function startScraper() {
if (process.env.ENABLE_SCHEDULING) {
scheduleScraping();
scheduleUpdateSeeders();
scheduleUpdateSeedersForNewTorrents();
} else {
scrapeAll()
}