diff --git a/scraper/lib/torrent.js b/scraper/lib/torrent.js index 58b9b8c..11fd27d 100644 --- a/scraper/lib/torrent.js +++ b/scraper/lib/torrent.js @@ -8,9 +8,9 @@ const { Type } = require('./types'); const { isVideo, isSubtitle } = require('./extension'); const { cacheTrackers } = require('./cache'); -const TRACKERS_URL = 'https://ngosang.github.io/trackerslist/trackers_all.txt'; +const TRACKERS_URL = 'https://ngosang.github.io/trackerslist/trackers_all_udp.txt'; const MAX_PEER_CONNECTIONS = process.env.MAX_PEER_CONNECTIONS || 20; -const SEEDS_CHECK_TIMEOUT = 30 * 1000; // 30 secs +const SEEDS_CHECK_TIMEOUT = 20 * 1000; // 30 secs const ADDITIONAL_TRACKERS = [ 'http://tracker.trackerfix.com:80/announce', 'udp://9.rarbg.me:2780', @@ -18,8 +18,8 @@ const ADDITIONAL_TRACKERS = [ ]; const ANIME_TRACKERS = [ "http://nyaa.tracker.wf:7777/announce", - "http://anidex.moe:6969/announce", - "http://tracker.anirena.com:80/announce", + "udp://anidex.moe:6969/announce", + "udp://tracker-udp.anirena.com:80/announce", "udp://tracker.uw0.xyz:6969/announce" ]; diff --git a/scraper/scheduler/seeders.js b/scraper/scheduler/seeders.js index 9a94686..15761fc 100644 --- a/scraper/scheduler/seeders.js +++ b/scraper/scheduler/seeders.js @@ -4,13 +4,13 @@ const { delay } = require('../lib/promises') const { updateCurrentSeeders } = require('../lib/torrent') const { updateTorrentSeeders } = require('../lib/torrentEntries') -const DELAY_MS = 15 * 1000; // 15 seconds +const DELAY_MS = 0; // 0 seconds const updateLimiter = new Bottleneck({ maxConcurrent: 5 }); const statistics = {}; function scheduleUpdateSeeders() { console.log('Starting seeders update...') - return repository.getUpdateSeedersTorrents(50) + return repository.getUpdateSeedersTorrents(100) .then(torrents => updateCurrentSeeders(torrents)) .then(updatedTorrents => Promise.all( updatedTorrents.map(updated => updateLimiter.schedule(() => updateTorrentSeeders(updated)))))