From 76943b65293d7a67876eee6c69a5a9f88e729eea Mon Sep 17 00:00:00 2001 From: Ruud Date: Thu, 23 Jan 2014 00:00:59 +0100 Subject: [PATCH] Make sure imdb list_id regex matches whole string. Thanks @basrieter --- couchpotato/core/providers/automation/imdb/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/couchpotato/core/providers/automation/imdb/main.py b/couchpotato/core/providers/automation/imdb/main.py index 1eff172f..6ca81b70 100644 --- a/couchpotato/core/providers/automation/imdb/main.py +++ b/couchpotato/core/providers/automation/imdb/main.py @@ -45,7 +45,7 @@ class IMDBWatchlist(IMDBBase): try: # 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: watchlist_url = 'http://www.imdb.com/list/%s/?view=compact&sort=created:asc' % ids[0] # Try find user id with watchlist