mirror of
https://github.com/oddluck/limnoria-plugins.git
synced 2025-04-25 20:41:21 -05:00
SpiffyTitles: minor edit to last commit
This commit is contained in:
parent
71e61fbeca
commit
b940690e3a
@ -1225,7 +1225,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