From 2d9cf4347c89ff6b6a2a7bdbf0cc4e8a8b08ec6a Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 6 Nov 2025 13:52:45 +0000 Subject: [PATCH] Improve Cinemax removal regex in fuzzy matcher - Updated regex from '\bCinemax\s+' to '\bCinemax\b\s*' - Now handles edge cases like Cinemax at end of string - Matches Cinemax as complete word with optional trailing spaces - Ensures proper matching for channels containing 'max' --- Stream-Mapparr/fuzzy_matcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Stream-Mapparr/fuzzy_matcher.py b/Stream-Mapparr/fuzzy_matcher.py index b365393..b288aff 100644 --- a/Stream-Mapparr/fuzzy_matcher.py +++ b/Stream-Mapparr/fuzzy_matcher.py @@ -179,7 +179,7 @@ class FuzzyMatcher: # Remove "Cinemax" prefix if requested (for channels containing "max") if remove_cinemax: - name = re.sub(r'\bCinemax\s+', '', name, flags=re.IGNORECASE) + name = re.sub(r'\bCinemax\b\s*', '', name, flags=re.IGNORECASE) # Apply hardcoded ignore patterns only if remove_quality_tags is True if remove_quality_tags: