[scraper] improves cd detection regex
This commit is contained in:
parent
c8dd952354
commit
1a4a06b8e3
1 changed files with 2 additions and 2 deletions
|
|
@ -386,8 +386,8 @@ function findMovieKitsuId(title) {
|
|||
function isSingleMovie(videos) {
|
||||
return videos.length === 1 ||
|
||||
(videos.length === 2 &&
|
||||
videos.find(v => /\bcd0?1\b/i.test(v.path)) &&
|
||||
videos.find(v => /\bcd0?2\b/i.test(v.path)));
|
||||
videos.find(v => /\bcd[ .-]?0?1\b/i.test(v.path)) &&
|
||||
videos.find(v => /\bcd[ .-]?0?2\b/i.test(v.path)));
|
||||
}
|
||||
|
||||
function isFeaturette(video) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue