mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
[scraper] overwrite kickass provider torrents
This commit is contained in:
@@ -100,6 +100,10 @@ async function checkAndUpdateTorrent(torrent) {
|
|||||||
if (!storedTorrent) {
|
if (!storedTorrent) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if (storedTorrent.provider === 'KickassTorrents' && torrent.provider) {
|
||||||
|
storedTorrent.provider = torrent.provider;
|
||||||
|
storedTorrent.torrentId = torrent.torrentId;
|
||||||
|
}
|
||||||
return createTorrentContents({ ...storedTorrent.get(), torrentLink: torrent.torrentLink })
|
return createTorrentContents({ ...storedTorrent.get(), torrentLink: torrent.torrentLink })
|
||||||
.then(() => updateTorrentSeeders(torrent));
|
.then(() => updateTorrentSeeders(torrent));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user