From b08d46efd4721c67d361d01848d14ae5b9a41600 Mon Sep 17 00:00:00 2001 From: TheBeastLT Date: Tue, 17 Mar 2020 23:55:45 +0100 Subject: [PATCH] [scraper] fixes has movies regex --- scraper/lib/torrentFiles.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scraper/lib/torrentFiles.js b/scraper/lib/torrentFiles.js index 74119a9..0b4f974 100644 --- a/scraper/lib/torrentFiles.js +++ b/scraper/lib/torrentFiles.js @@ -9,7 +9,7 @@ const MIN_SIZE = 10 * 1024 * 1024; // 10 MB async function parseTorrentFiles(torrent) { const parsedTorrentName = parse(torrent.title); - parsedTorrentName.hasMovies = parsedTorrentName.complete || !!torrent.title.match(/movies?(?:\W|$)/); + parsedTorrentName.hasMovies = parsedTorrentName.complete || !!torrent.title.match(/movies?(?:\W|$)/i); const metadata = await getMetadata(torrent.kitsuId || torrent.imdbId, torrent.type || Type.MOVIE) .catch(() => undefined);