From 0bda72e19cf3cdfd997d3f57307c59efd2c6fd88 Mon Sep 17 00:00:00 2001 From: TheBeastLT Date: Wed, 15 Sep 2021 09:58:08 +0200 Subject: [PATCH] fix watermark file regexp --- scraper/lib/torrent.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scraper/lib/torrent.js b/scraper/lib/torrent.js index 3d33965..510c214 100644 --- a/scraper/lib/torrent.js +++ b/scraper/lib/torrent.js @@ -175,7 +175,7 @@ function filterVideos(files) { const isExtra = video => video.path.match(/extras?\//i); const isAnimeExtra = video => video.path.match(/(?:\b|_)(?:NC)?(?:ED|OP|PV)(?:v?\d\d?)?(?:\b|_)/i) && maxSize / parseInt(video.size) > minAnimeExtraRatio; - const isWatermark = video => video.path.match(/^[A-Z-](?:\.[A-Z])?\.\w{3,4}$/) + const isWatermark = video => video.path.match(/^[A-Z-]+(?:\.[A-Z]+)?\.\w{3,4}$/) && maxSize / parseInt(video.size) > minAnimeExtraRatio return videos .filter(video => !isSample(video))