mirror of https://github.com/morpheus65535/bazarr
Fixed subf2m search process by stripping html title result before using regex
This commit is contained in:
parent
9ec6027989
commit
855da6b1bb
|
@ -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…
Reference in New Issue