From 1efaa0451c8998df19c78e9a70d63be6605be939 Mon Sep 17 00:00:00 2001 From: TheBeastLT Date: Fri, 13 Mar 2020 23:15:25 +0100 Subject: [PATCH] [scraper] check existing torrent for 1337x once infohash is defined --- scraper/scrapers/1337x/1337x_scraper.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scraper/scrapers/1337x/1337x_scraper.js b/scraper/scrapers/1337x/1337x_scraper.js index a3a7f52..91f3036 100644 --- a/scraper/scrapers/1337x/1337x_scraper.js +++ b/scraper/scrapers/1337x/1337x_scraper.js @@ -60,8 +60,8 @@ async function processTorrentRecord(record) { console.warn(`Incorrect upload date for [${torrentFound.infoHash}] ${torrentFound.name}`); return; } - if (await getStoredTorrentEntry(record)) { - return updateTorrentSeeders(record); + if (await getStoredTorrentEntry(torrentFound)) { + return updateTorrentSeeders(torrentFound); } const torrent = {