[scraper] improves concat episodes decomposition condition

This commit is contained in:
TheBeastLT
2020-12-24 11:51:00 +01:00
parent c3c21e9dc8
commit 59d4bfaa66
2 changed files with 25 additions and 9 deletions

View File

@@ -70,7 +70,7 @@ function _requestMetadata(url) {
return map;
}, {})),
totalCount: body.meta.videos && body.meta.videos
.filter((entry) => entry.season !== 0).length
.filter((entry) => entry.season !== 0 && entry.episode !== 0).length
};
} else {
throw new Error('No search results');