summaryrefslogtreecommitdiffhomepage
path: root/libs
diff options
context:
space:
mode:
authormorpheus65535 <[email protected]>2021-09-03 19:19:02 -0400
committermorpheus65535 <[email protected]>2021-09-03 19:19:02 -0400
commitcaf01da2edadbbc847f39a92c45c67587e7eb152 (patch)
tree65ab2ea0f8b3e3a9a9a2328e47c4948af8847811 /libs
parent37e9e251f02be75bdbd58ef509dff7224b91add7 (diff)
downloadbazarr-caf01da2edadbbc847f39a92c45c67587e7eb152.tar.gz
bazarr-caf01da2edadbbc847f39a92c45c67587e7eb152.zip
Fixed incompatible operator with Python 3.7 in latest patch to Addic7ed.v0.9.9-beta.2
Diffstat (limited to 'libs')
-rw-r--r--libs/subliminal_patch/providers/addic7ed.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/subliminal_patch/providers/addic7ed.py b/libs/subliminal_patch/providers/addic7ed.py
index f61222ee6..530ab62dc 100644
--- a/libs/subliminal_patch/providers/addic7ed.py
+++ b/libs/subliminal_patch/providers/addic7ed.py
@@ -252,7 +252,8 @@ class Addic7edProvider(_Addic7edProvider):
type, media_id = link['href'].split('/')
if type == 'movie':
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_year = match.group(2)
if sanitize(media_name.lower()) == sanitize(movie.lower()) and media_year == str(year):