From f213f93253a26c9ba9082f785b5cc39faadfee23 Mon Sep 17 00:00:00 2001 From: TRaSH Date: Sun, 22 Jan 2023 18:53:59 +0100 Subject: [PATCH] Prevent CF `Opus` to be matched if Opus is in the release name. - Prevent CF `Opus` (audio) to be matched if Opus is in the release name. (Mainly for Sonarr being the regex matching starts after Episode number, but also added it to Radarr CF to be consistent). - Added: regex example --- docs/json/radarr/cf/opus.json | 3 ++- docs/json/sonarr/cf/opus.json | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/json/radarr/cf/opus.json b/docs/json/radarr/cf/opus.json index 648822223..8c32ed375 100644 --- a/docs/json/radarr/cf/opus.json +++ b/docs/json/radarr/cf/opus.json @@ -1,6 +1,7 @@ { "trash_id": "a061e2e700f81932daf888599f8a8273", "trash_score": "250", + "trash_regex": "https://regex101.com/r/SsIWo3/1", "name": "Opus", "includeCustomFormatWhenRenaming": false, "specifications": [{ @@ -9,7 +10,7 @@ "negate": false, "required": true, "fields": { - "value": "\\bOPUS(\\b|\\d)" + "value": "\\bOPUS(\\b|\\d)(?!.*[ ._-](\\d{3,4}p))" } }, { diff --git a/docs/json/sonarr/cf/opus.json b/docs/json/sonarr/cf/opus.json index 237655bce..9b9a2ff01 100644 --- a/docs/json/sonarr/cf/opus.json +++ b/docs/json/sonarr/cf/opus.json @@ -1,6 +1,7 @@ { "trash_id": "28f6ef16d61e2d1adfce3156ed8257e3", "trash_score": "250", + "trash_regex": "https://regex101.com/r/SsIWo3/1", "name": "Opus", "includeCustomFormatWhenRenaming": false, "specifications": [{ @@ -9,7 +10,7 @@ "negate": false, "required": true, "fields": { - "value": "\\bOPUS(\\b|\\d)" + "value": "\\bOPUS(\\b|\\d)(?!.*[ ._-](\\d{3,4}p))" } }, {