Update FileStream/bot/plugins/FileHandlers/callback.py
Browse files
FileStream/bot/plugins/FileHandlers/callback.py
CHANGED
|
@@ -193,8 +193,8 @@ async def cb_data(bot: Client, update: CallbackQuery):
|
|
| 193 |
print(f"** ANY SEARCH :{name} \nFinal :{title} YEAR :{year}")
|
| 194 |
get_imdb_id = json.loads(imdb.search(title, year=int(year)))
|
| 195 |
print(f"\n** GET_ID {get_imdb_id}")
|
| 196 |
-
res=json.loads(asyncio.to_thread(imdb.get_by_id, get_imdb_id['results'][0]['id']))
|
| 197 |
-
|
| 198 |
print(f"\n** IMDB Response :{res}")
|
| 199 |
#"IMDB_id":get_imdb_id['results'][0]['id'] if get_imdb_id['results'][0]['id']else "None",
|
| 200 |
|
|
|
|
| 193 |
print(f"** ANY SEARCH :{name} \nFinal :{title} YEAR :{year}")
|
| 194 |
get_imdb_id = json.loads(imdb.search(title, year=int(year)))
|
| 195 |
print(f"\n** GET_ID {get_imdb_id}")
|
| 196 |
+
#res=json.loads(asyncio.to_thread(imdb.get_by_id, get_imdb_id['results'][0]['id']))
|
| 197 |
+
res=json.loads(imdb.get_by_id(get_imdb_id['results'][0]['id']))
|
| 198 |
print(f"\n** IMDB Response :{res}")
|
| 199 |
#"IMDB_id":get_imdb_id['results'][0]['id'] if get_imdb_id['results'][0]['id']else "None",
|
| 200 |
|