Fixed subf2m search process by stripping html title result before using regex

pull/2636/head
GabbeHags 3 months ago committed by GitHub
parent 9ec6027989
commit 855da6b1bb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -220,7 +220,7 @@ class Subf2mProvider(Provider):
results = [] results = []
for result in self._gen_results(title): for result in self._gen_results(title):
text = result.text.lower() text = result.text.strip().lower()
match = self._movie_title_regex.match(text) match = self._movie_title_regex.match(text)
if not match: if not match:
continue continue
@ -254,7 +254,7 @@ class Subf2mProvider(Provider):
results = [] results = []
for result in self._gen_results(title): for result in self._gen_results(title):
text = result.text.lower() text = result.text.strip().lower()
match = self._tv_show_title_regex.match(text) match = self._tv_show_title_regex.match(text)
if not match: if not match:

Loading…
Cancel
Save