From a8e76cd46e1b8bf515ffe6f5768dc838869e4564 Mon Sep 17 00:00:00 2001 From: TheBeastLT Date: Fri, 3 Apr 2020 14:10:31 +0200 Subject: [PATCH] [scraper] fixes horriblesubs spread operator object --- scraper/scrapers/horriblesubs/horriblesubs_scraper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scraper/scrapers/horriblesubs/horriblesubs_scraper.js b/scraper/scrapers/horriblesubs/horriblesubs_scraper.js index 4383d7f..579c15d 100644 --- a/scraper/scrapers/horriblesubs/horriblesubs_scraper.js +++ b/scraper/scrapers/horriblesubs/horriblesubs_scraper.js @@ -204,7 +204,7 @@ async function checkIfExists(torrent) { } else if (existingTorrent.provider === NAME) { return undefined; // torrent by this provider already exists } - return { ...torrent.get(), size: existingTorrent.size, seeders: existingTorrent.seeders }; + return { ...torrent, size: existingTorrent.size, seeders: existingTorrent.seeders }; } module.exports = { scrape, NAME }; \ No newline at end of file