mirror of
https://github.com/TheBeastLT/torrentio-scraper.git
synced 2026-03-11 17:15:37 +00:00
[scraper] updates seeders only when providers the same
This commit is contained in:
parent
de0fc88cf3
commit
59b7536cde
1 changed files with 1 additions and 1 deletions
|
|
@ -91,7 +91,7 @@ async function updateTorrentSeeders(torrent) {
|
|||
return repository.getTorrent(torrent)
|
||||
.catch(() => undefined)
|
||||
.then(stored => {
|
||||
if (stored) {
|
||||
if (stored && (!torrent.provider || torrent.provider === stored.provider)) {
|
||||
stored.seeders = torrent.seeders;
|
||||
stored.changed('updatedAt', true);
|
||||
return stored.save()
|
||||
|
|
|
|||
Loading…
Reference in a new issue