fix !imdb

This commit is contained in:
Twentysix 2016-01-21 15:25:38 +01:00
parent 1763c76d69
commit d06345dbe2

2
red.py
View File

@ -984,7 +984,7 @@ async def imdb(message): # Method added by BananaWaffles.
try:
msg.remove(msg[0])
msg = "+".join(msg)
search = "http://api.myapifilms.com/imdb/title?format=json&title=" + msg + "&token=" + "yourtokenhere"
search = "http://api.myapifilms.com/imdb/title?format=json&title=" + msg + "&token=" + apis["MYAPIFILMS_TOKEN"]
async with aiohttp.get(search) as r:
result = await r.json()
title = result['data']['movies'][0]['title']