[scraper] fixes eztv latest scraper method

This commit is contained in:
TheBeastLT
2020-04-14 11:05:01 +02:00
parent c565980e45
commit fd7057f3dc
2 changed files with 2 additions and 2 deletions

View File

@@ -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];
}

View File

@@ -34,7 +34,7 @@ async function updateSeeders(torrent) {
}
async function scrapeLatestTorrents() {
return scrapeLatestTorrentsForCategory(1654);
return scrapeLatestTorrentsForCategory();
}
async function scrapeLatestTorrentsForCategory(page = 1) {