mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
[scraper] disable nyaasi seeders update request
This commit is contained in:
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user