diff --git a/movie.py b/movie.py index 76f03a56fd..5e098a6265 100644 --- a/movie.py +++ b/movie.py @@ -22,9 +22,8 @@ def movie(bot, trigger): word = trigger.group(2).rstrip() word = word.replace(" ", "+") uri = "http://www.imdbapi.com/?t=" + word - u = web.get_urllib_object(uri, 30) - data = json.load(u) # data is a Dict containing all the information we need - u.close() + u = web.get(uri, 30) + data = json.loads(u.decode()) # data is a Dict containing all the information we need if data['Response'] == 'False': if 'Error' in data: message = '[MOVIE] %s' % data['Error']