From 1a4a06b8e3fe2ca453c0f414598ea57fd5e7334e Mon Sep 17 00:00:00 2001 From: TheBeastLT Date: Sat, 9 May 2020 21:50:41 +0200 Subject: [PATCH] [scraper] improves cd detection regex --- scraper/lib/torrentFiles.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scraper/lib/torrentFiles.js b/scraper/lib/torrentFiles.js index 155f212..30e0d7e 100644 --- a/scraper/lib/torrentFiles.js +++ b/scraper/lib/torrentFiles.js @@ -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) {