From b9129311afb892fe7e6b621f080f1ee67514d732 Mon Sep 17 00:00:00 2001 From: WeebDataHoarder <57538841+WeebDataHoarder@users.noreply.github.com> Date: Thu, 13 Apr 2023 11:37:58 +0200 Subject: [PATCH] Specifically set remux = false on known rips by file name --- AnimeBytes/ab-mediainfo.user.js | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/AnimeBytes/ab-mediainfo.user.js b/AnimeBytes/ab-mediainfo.user.js index 8f94480..d6405a5 100644 --- a/AnimeBytes/ab-mediainfo.user.js +++ b/AnimeBytes/ab-mediainfo.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name AnimeBytes Mediainfo Improvements // @author WeebDataHoarder -// @version 1.30.2 +// @version 1.30.3 // @downloadURL https://git.gammaspectra.live/WeebDataHoarder/userscripts/raw/branch/master/AnimeBytes/ab-mediainfo.user.js // @updateURL https://git.gammaspectra.live/WeebDataHoarder/userscripts/raw/branch/master/AnimeBytes/ab-mediainfo.user.js // @description AnimeBytes Mediainfo Improvements. Adds several listing and matching releases against mediainfo utilities. MIT license @@ -297,6 +297,13 @@ function extractTagsFromFilename(fileName, sourceTags, source = ""){ }else if(p.match(/^web(-?(rip|dl))?$/i) !== null){ tags.source = "Web"; } + + // negative match known rips to not be flagged by REMUX* later + if(p.match(/^(bd|(blu-?ray))(-?rip)$/i) !== null){ + tags.remux = false; + } else if(p.match(/^(dvd)(-?rip)$/i) !== null){ + tags.remux = false; + } }); fileName.split(/[ _\[(\])]/).forEach((p) => { @@ -382,6 +389,13 @@ function extractTagsFromFilename(fileName, sourceTags, source = ""){ }else if(p.match(/^web(-?(rip|dl))?$/i) !== null){ tags.source = "Web"; } + + // negative match known rips to not be flagged by REMUX* later + if(p.match(/^(bd|(blu-?ray))(-?rip)$/i) !== null){ + tags.remux = false; + } else if(p.match(/^(dvd)(-?rip)$/i) !== null){ + tags.remux = false; + } }); return tags;