[scraper] filters zero episodes from season episode counts

This commit is contained in:
TheBeastLT
2020-10-24 12:18:19 +02:00
parent 0a289d9188
commit f0ea03b223

View File

@@ -63,7 +63,7 @@ function _requestMetadata(url) {
}
),
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)
.reduce((map, next) => {
map[next.season] = map[next.season] + 1 || 1;