[scraper] disable nyaasi seeders update request

This commit is contained in:
TheBeastLT
2020-12-02 10:44:54 +01:00
parent 63a0c39a00
commit cdb221a2cd

View File

@@ -29,13 +29,9 @@ async function scrape() {
} }
async function updateSeeders(torrent) { async function updateSeeders(torrent) {
return limiter.schedule(() => nyaasi.torrent(torrent.torrentId)) // return limiter.schedule(() => nyaasi.torrent(torrent.torrentId))
.then(foundTorrent => { // .then(foundTorrent => Number.isInteger(foundTorrent.seeders) ? [foundTorrent] : []);
if (Number.isInteger(foundTorrent.seeders)) { return Promise.resolve([]);
return [foundTorrent];
}
return []
});
} }
async function scrapeLatestTorrents() { async function scrapeLatestTorrents() {