Permalink
Browse files

change in json response from imdbapi

  • Loading branch information...
1 parent f974b74 commit 3588f61acd04c02231ce5675deadc61141032b19 @jlauwers jlauwers committed May 10, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 pchtrakt/mediaparser.py
@@ -63,11 +63,11 @@ def __init__(self,file_name,name,year,imdbid):
ImdbAPIurl = ('http://www.imdbapi.com/?t={0}&y={1}'.format(
quote(self.name),
self.year))
-
+
try:
oResponse = urlopen(ImdbAPIurl,None,5)
myMovieJson = json.loads(oResponse.read())
- self.id = myMovieJson['ID']
+ self.id = myMovieJson['imdbID']
except URLError, HTTPError:
ImdbAPIurl = ('http://www.deanclatworthy.com/' \
'imdb/?q={0}&year={1}'.format(

0 comments on commit 3588f61

Please sign in to comment.