From fd7057f3dc12f384941e2d52d973ccc2b124dc3b Mon Sep 17 00:00:00 2001 From: TheBeastLT Date: Tue, 14 Apr 2020 11:05:01 +0200 Subject: [PATCH] [scraper] fixes eztv latest scraper method --- scraper/lib/torrentFiles.js | 2 +- scraper/scrapers/eztv/eztv_scraper.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scraper/lib/torrentFiles.js b/scraper/lib/torrentFiles.js index 2517aca..14e30b7 100644 --- a/scraper/lib/torrentFiles.js +++ b/scraper/lib/torrentFiles.js @@ -131,7 +131,7 @@ function parseSeriesFile(file, parsedTorrentName) { if (!fileInfo.season && parsedTorrentName.season) { fileInfo.season = parsedTorrentName.season; } - if (!fileInfo.season && fileInfo.seasons.length > 1) { + if (!fileInfo.season && fileInfo.seasons && fileInfo.seasons.length > 1) { // in case single file was interpreted as having multiple seasons fileInfo.season = fileInfo.seasons[0]; } diff --git a/scraper/scrapers/eztv/eztv_scraper.js b/scraper/scrapers/eztv/eztv_scraper.js index 98092ec..bc636f5 100644 --- a/scraper/scrapers/eztv/eztv_scraper.js +++ b/scraper/scrapers/eztv/eztv_scraper.js @@ -34,7 +34,7 @@ async function updateSeeders(torrent) { } async function scrapeLatestTorrents() { - return scrapeLatestTorrentsForCategory(1654); + return scrapeLatestTorrentsForCategory(); } async function scrapeLatestTorrentsForCategory(page = 1) {