mirror of
https://github.com/TheBeastLT/torrentio-scraper.git
synced 2026-03-11 21:26:53 +00:00
check season outside season list for absolute condition
This commit is contained in:
parent
2e029f574a
commit
b0029dcf5a
1 changed files with 2 additions and 1 deletions
|
|
@ -244,7 +244,8 @@ function isAbsoluteEpisodeFiles(files, metadata) {
|
|||
const absoluteEpisodes = files
|
||||
.filter(file => file.season && file.episodes)
|
||||
.filter(file => file.episodes.every(ep => metadata.episodeCount[file.season - 1] < ep))
|
||||
return nonMovieEpisodes.every(file => !file.season) || absoluteEpisodes.length >= threshold
|
||||
return nonMovieEpisodes.every(file => !file.season || file.season > metadata.episodeCount.length)
|
||||
|| absoluteEpisodes.length >= threshold
|
||||
// && !isNewEpisodesNotInMetadata(files, metadata);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue