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) {