diff --git a/scraper/lib/torrentEntries.js b/scraper/lib/torrentEntries.js index 24d7fc4..39d7174 100644 --- a/scraper/lib/torrentEntries.js +++ b/scraper/lib/torrentEntries.js @@ -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)); }