[scraper] overwrite kickass provider torrents
This commit is contained in:
parent
0a68bec37a
commit
a1809d1848
1 changed files with 4 additions and 0 deletions
|
|
@ -100,6 +100,10 @@ async function checkAndUpdateTorrent(torrent) {
|
|||
if (!storedTorrent) {
|
||||
return false;
|
||||
}
|
||||
if (storedTorrent.provider === 'KickassTorrents' && torrent.provider) {
|
||||
storedTorrent.provider = torrent.provider;
|
||||
storedTorrent.torrentId = torrent.torrentId;
|
||||
}
|
||||
return createTorrentContents({ ...storedTorrent.get(), torrentLink: torrent.torrentLink })
|
||||
.then(() => updateTorrentSeeders(torrent));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue