[scraper] check existing torrent for 1337x once infohash is defined

This commit is contained in:
TheBeastLT
2020-03-13 23:15:25 +01:00
parent b5c58c92f0
commit 1efaa0451c

View File

@@ -60,8 +60,8 @@ async function processTorrentRecord(record) {
console.warn(`Incorrect upload date for [${torrentFound.infoHash}] ${torrentFound.name}`); console.warn(`Incorrect upload date for [${torrentFound.infoHash}] ${torrentFound.name}`);
return; return;
} }
if (await getStoredTorrentEntry(record)) { if (await getStoredTorrentEntry(torrentFound)) {
return updateTorrentSeeders(record); return updateTorrentSeeders(torrentFound);
} }
const torrent = { const torrent = {