mirror of
https://github.com/oddluck/limnoria-plugins.git
synced 2025-04-25 20:41:21 -05:00
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…
x
Reference in New Issue
Block a user