[scraper] improve detection of movies in 2 cds

This commit is contained in:
TheBeastLT
2021-02-24 11:49:25 +01:00
parent 7193b8a75b
commit 622e4d7274
3 changed files with 5 additions and 5 deletions

View File

@@ -477,8 +477,8 @@ function isDiskTorrent(contents) {
function isSingleMovie(videos) {
return videos.length === 1 ||
(videos.length === 2 &&
videos.find(v => /\bcd[ .-]?0?1\b/i.test(v.path)) &&
videos.find(v => /\bcd[ .-]?0?2\b/i.test(v.path)));
videos.find(v => /\b(?:part|disc|cd)[ ._-]?0?1\b|^0?1\.\w{2,4}$/i.test(v.path)) &&
videos.find(v => /\b(?:part|disc|cd)[ ._-]?0?2\b|^0?2\.\w{2,4}$/i.test(v.path)));
}
function isFeaturette(video) {