imdbapi.com moved to omdbapi.com, so that's fixed.
This commit is contained in:
parent
12cd3521e5
commit
2b321a932e
|
@ -7,7 +7,7 @@ from util import hook, http
|
||||||
def imdb(inp):
|
def imdb(inp):
|
||||||
'''.imdb <movie> -- gets information about <movie> from IMDb'''
|
'''.imdb <movie> -- gets information about <movie> from IMDb'''
|
||||||
|
|
||||||
content = http.get_json("http://www.imdbapi.com/", t=inp)
|
content = http.get_json("http://www.omdbapi.com/", t=inp)
|
||||||
|
|
||||||
if content['Response'] == 'Movie Not Found':
|
if content['Response'] == 'Movie Not Found':
|
||||||
return 'movie not found'
|
return 'movie not found'
|
||||||
|
|
Loading…
Reference in New Issue