mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
[scraper] fixes eztv latest scraper method
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ async function updateSeeders(torrent) {
|
||||
}
|
||||
|
||||
async function scrapeLatestTorrents() {
|
||||
return scrapeLatestTorrentsForCategory(1654);
|
||||
return scrapeLatestTorrentsForCategory();
|
||||
}
|
||||
|
||||
async function scrapeLatestTorrentsForCategory(page = 1) {
|
||||
|
||||
Reference in New Issue
Block a user