mirror of https://github.com/morpheus65535/bazarr
Fixed incompatible operator with Python 3.7 in latest patch to Addic7ed.
This commit is contained in:
parent
37e9e251f0
commit
caf01da2ed
|
@ -252,7 +252,8 @@ class Addic7edProvider(_Addic7edProvider):
|
||||||
type, media_id = link['href'].split('/')
|
type, media_id = link['href'].split('/')
|
||||||
if type == 'movie':
|
if type == 'movie':
|
||||||
media_title = link.text
|
media_title = link.text
|
||||||
if match := re.search(r'(.+)\s\((\d{4})\)$', media_title):
|
match = re.search(r'(.+)\s\((\d{4})\)$', media_title)
|
||||||
|
if match:
|
||||||
media_name = match.group(1)
|
media_name = match.group(1)
|
||||||
media_year = match.group(2)
|
media_year = match.group(2)
|
||||||
if sanitize(media_name.lower()) == sanitize(movie.lower()) and media_year == str(year):
|
if sanitize(media_name.lower()) == sanitize(movie.lower()) and media_year == str(year):
|
||||||
|
|
Loading…
Reference in New Issue