[scraper] improves cd detection regex

This commit is contained in:
TheBeastLT
2020-05-09 21:50:41 +02:00
parent c8dd952354
commit 1a4a06b8e3

View File

@@ -386,8 +386,8 @@ function findMovieKitsuId(title) {
function isSingleMovie(videos) { function isSingleMovie(videos) {
return videos.length === 1 || return videos.length === 1 ||
(videos.length === 2 && (videos.length === 2 &&
videos.find(v => /\bcd0?1\b/i.test(v.path)) && videos.find(v => /\bcd[ .-]?0?1\b/i.test(v.path)) &&
videos.find(v => /\bcd0?2\b/i.test(v.path))); videos.find(v => /\bcd[ .-]?0?2\b/i.test(v.path)));
} }
function isFeaturette(video) { function isFeaturette(video) {