mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
[scraper] filters zero episodes from season episode counts
This commit is contained in:
@@ -63,7 +63,7 @@ function _requestMetadata(url) {
|
|||||||
}
|
}
|
||||||
),
|
),
|
||||||
episodeCount: Object.values((body.meta.videos || [])
|
episodeCount: Object.values((body.meta.videos || [])
|
||||||
.filter((entry) => entry.season !== 0)
|
.filter((entry) => entry.season !== 0 && entry.episode !== 0)
|
||||||
.sort((a, b) => a.season - b.season)
|
.sort((a, b) => a.season - b.season)
|
||||||
.reduce((map, next) => {
|
.reduce((map, next) => {
|
||||||
map[next.season] = map[next.season] + 1 || 1;
|
map[next.season] = map[next.season] + 1 || 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user