Skip to content

Commit

Permalink
Merge pull request #470 from rameshdharan/master
Browse files Browse the repository at this point in the history
Decode IMDB API output as utf-8
  • Loading branch information
Elad Alfassa committed Mar 6, 2014
2 parents 6e573f4 + 66e1b1b commit 04e34d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion willie/modules/movie.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def movie(bot, trigger):
word = word.replace(" ", "+")
uri = "http://www.imdbapi.com/?t=" + word
u = web.get(uri, 30)
data = json.loads(u.decode()) # data is a Dict containing all the information we need
data = json.loads(u.decode('utf-8')) # data is a Dict containing all the information we need
if data['Response'] == 'False':
if 'Error' in data:
message = '[MOVIE] %s' % data['Error']
Expand Down

0 comments on commit 04e34d8

Please sign in to comment.