mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
[scraper] disables imdb id seeders update for eztv
This commit is contained in:
@@ -15,8 +15,12 @@ const statistics = {};
|
||||
function scheduleUpdateSeeders() {
|
||||
console.log('Starting seeders update...')
|
||||
return repository.getUpdateSeedersTorrents()
|
||||
.then(torrents => Promise.all(torrents.map(torrent => limiter.schedule(() =>
|
||||
timeout(TIMEOUT_MS, _updateSeeders(torrent), `Failed [${torrent.infoHash}] torrent seeders update`)))))
|
||||
.then(torrents => Promise.all(torrents.map(torrent => limiter
|
||||
.schedule(() => timeout(TIMEOUT_MS, _updateSeeders(torrent)))
|
||||
.catch(error => {
|
||||
console.log(`Failed [${torrent.infoHash}] ${torrent.title} seeders update: `, error);
|
||||
return []
|
||||
}))))
|
||||
.then(torrents => updateStatistics(torrents))
|
||||
.then(() => console.log('Finished seeders update:', statistics))
|
||||
.catch(error => console.warn('Failed seeders update:', error))
|
||||
|
||||
Reference in New Issue
Block a user