SpiffyTitles: fix imdb regex
This commit is contained in:
parent
19d7f7e705
commit
3e33f0eae8
|
@ -1236,7 +1236,7 @@ class SpiffyTitles(callbacks.Plugin):
|
|||
if "?" in url:
|
||||
url = url.split("?")[0]
|
||||
# We can only accommodate a specific format of URL here
|
||||
match = re.match(r"https?:\/\/.*\.imdb\.com\/title\/(tt[0-9]+)\/?.*", url)
|
||||
match = re.match(r"https?:\/\/.*\.?imdb\.com\/title\/(tt[0-9]+)\/?.*", url)
|
||||
if match:
|
||||
imdb_id = match.group(1)
|
||||
if not imdb_id:
|
||||
|
|
Loading…
Reference in New Issue