From adfd898a45f82eda137056f1464e55ee3e9f3a73 Mon Sep 17 00:00:00 2001 From: cynicalgeek Date: Wed, 17 Aug 2022 10:29:21 -0700 Subject: [PATCH] Regex match for -D-Z0N3 in Clean script (SABnzbd) --- docs/Downloaders/SABnzbd/scripts/Clean/Clean.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/Downloaders/SABnzbd/scripts/Clean/Clean.py b/docs/Downloaders/SABnzbd/scripts/Clean/Clean.py index 3b3832ba8..a7f13064a 100644 --- a/docs/Downloaders/SABnzbd/scripts/Clean/Clean.py +++ b/docs/Downloaders/SABnzbd/scripts/Clean/Clean.py @@ -54,7 +54,7 @@ fwp = re.sub('(?i)\[ettv\]$', '', fwp) fwp = re.sub('(?i)\[TGx\]-xpost$', '', fwp) fwp = re.sub('(?i).mkv-xpost$', '', fwp) fwp = re.sub('(?i)-xpost$', '', fwp) -fwp = re.sub(r'(\-[^-.\n]*)(\-.{4})?$', r'\1', fwp) +fwp = re.sub(r'(?i)(-D-Z0N3|\-[^-.\n]*)(\-.{4})?$', r'\1', fwp) print("1") # Accept print(fwp)