privateone commited on
Commit
92c6813
·
verified ·
1 Parent(s): 6813a1e

Update FileStream/bot/plugins/FileHandlers/callback.py

Browse files
FileStream/bot/plugins/FileHandlers/callback.py CHANGED
@@ -193,7 +193,7 @@ 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(imdb.get_by_id(asyncio.to_thread, 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",
 
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",