Make sure imdb list_id regex matches whole string.
Thanks @basrieter
This commit is contained in:
@@ -45,7 +45,7 @@ class IMDBWatchlist(IMDBBase):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
# Get list ID
|
# Get list ID
|
||||||
ids = re.findall('[list/|list_id=]([a-zA-Z0-9\-_]{11})', watchlist_url)
|
ids = re.findall('(?:list/|list_id=)([a-zA-Z0-9\-_]{11})', watchlist_url)
|
||||||
if len(ids) == 1:
|
if len(ids) == 1:
|
||||||
watchlist_url = 'http://www.imdb.com/list/%s/?view=compact&sort=created:asc' % ids[0]
|
watchlist_url = 'http://www.imdb.com/list/%s/?view=compact&sort=created:asc' % ids[0]
|
||||||
# Try find user id with watchlist
|
# Try find user id with watchlist
|
||||||
|
|||||||
Reference in New Issue
Block a user