Browse Source
Updated protocol from http to https since IMDB returns 301 Moved Permanently
pull/7328/head
Bartosz Kaszewczuk
4 years ago
No known key found for this signature in database
GPG Key ID: 5A08F43F577231D8
1 changed files with
2 additions and
2 deletions
-
couchpotato/core/media/movie/providers/automation/imdb.py
|
|
@ -99,12 +99,12 @@ class IMDBWatchlist(IMDBBase): |
|
|
|
# Get list ID |
|
|
|
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] |
|
|
|
watchlist_url = 'https://www.imdb.com/list/%s/?view=compact&sort=created:asc' % ids[0] |
|
|
|
# Try find user id with watchlist |
|
|
|
else: |
|
|
|
userids = re.findall('(ur\d{7,9})', watchlist_url) |
|
|
|
if len(userids) == 1: |
|
|
|
watchlist_url = 'http://www.imdb.com/user/%s/watchlist?view=compact&sort=created:asc' % userids[0] |
|
|
|
watchlist_url = 'https://www.imdb.com/user/%s/watchlist?view=compact&sort=created:asc' % userids[0] |
|
|
|
except: |
|
|
|
log.error('Failed getting id from watchlist: %s', traceback.format_exc()) |
|
|
|
|
|
|
|