summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGabbeHags <[email protected]>2024-08-26 13:49:33 +0200
committerGitHub <[email protected]>2024-08-26 07:49:33 -0400
commit855da6b1bb1cbb41d687e4593e2e9d092ed6e273 (patch)
tree9d30b0e8e09d34794af7c64b22a1c21e41acf3c8
parent9ec60279896420f80916687d29530025f16ba0a8 (diff)
downloadbazarr-855da6b1bb1cbb41d687e4593e2e9d092ed6e273.tar.gz
bazarr-855da6b1bb1cbb41d687e4593e2e9d092ed6e273.zip
Fixed subf2m search process by stripping html title result before using regex
-rw-r--r--custom_libs/subliminal_patch/providers/subf2m.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/custom_libs/subliminal_patch/providers/subf2m.py b/custom_libs/subliminal_patch/providers/subf2m.py
index 6b3a59129..0ef39595d 100644
--- a/custom_libs/subliminal_patch/providers/subf2m.py
+++ b/custom_libs/subliminal_patch/providers/subf2m.py
@@ -220,7 +220,7 @@ class Subf2mProvider(Provider):
results = []
for result in self._gen_results(title):
- text = result.text.lower()
+ text = result.text.strip().lower()
match = self._movie_title_regex.match(text)
if not match:
continue
@@ -254,7 +254,7 @@ class Subf2mProvider(Provider):
results = []
for result in self._gen_results(title):
- text = result.text.lower()
+ text = result.text.strip().lower()
match = self._tv_show_title_regex.match(text)
if not match: