Permalink
Browse files

Support a couple of variants on the imdb webpage url

  • Loading branch information...
1 parent e5d6cab commit 618f4b7a4dc2bf7ca1693da903467cd4403cdbc3 @nmunson committed Mar 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/lib/imdbwl.py
View
@@ -30,7 +30,7 @@ def _get_watchlist(self, url):
# Check if user has provided watchlist webpage, rather than export URL
try:
url_parts = url.split("/")
- if url_parts[3] == "user" or url_parts[5] == "watchlist":
+ if url_parts[3] == "user" and url_parts[5].startswith("watchlist"):
url = "http://www.imdb.com/list/export?list_id=watchlist&author_id=%s" % (url_parts[4])
except(IndexError):
pass

0 comments on commit 618f4b7

Please sign in to comment.