BinaryONe commited on
Commit
3ad44f5
·
1 Parent(s): 617eda9

Callback Update

Browse files
FileStream/bot/plugins/FileHandlers/callback.py CHANGED
@@ -165,7 +165,7 @@ async def cb_data(bot: Client, update: CallbackQuery):
165
  print(f"ANY SEARCH :{title} YEAR :{year} IMDB Response :{res}")
166
  print("TMDB",search_tmdb_any(title, year))
167
  print(f"IMDB ID :{res['results'][0]['id']}")
168
- #print(f"IMDB Response :{imdb.get_by_id()}")
169
  if msg_type == 'MOVIE':
170
  resp=search_tmdb_movies(name)
171
  print("TMDB Movie Response:",resp,"\n IMDB",res)
@@ -190,7 +190,7 @@ async def cb_data(bot: Client, update: CallbackQuery):
190
  "privacy_type": "PUBLIC",
191
  "user_id": user_id,
192
  "user_type": "TELEGRAM",
193
- "IMDB_id": res['id'],
194
  "TMDB_id": result['id'],
195
  "title": result['title'],
196
  "type": result['media_type'],
 
165
  print(f"ANY SEARCH :{title} YEAR :{year} IMDB Response :{res}")
166
  print("TMDB",search_tmdb_any(title, year))
167
  print(f"IMDB ID :{res['results'][0]['id']}")
168
+ print(f"IMDB Response :{imdb.get_by_id(res['results'][0]['id'])}")
169
  if msg_type == 'MOVIE':
170
  resp=search_tmdb_movies(name)
171
  print("TMDB Movie Response:",resp,"\n IMDB",res)
 
190
  "privacy_type": "PUBLIC",
191
  "user_id": user_id,
192
  "user_type": "TELEGRAM",
193
+ "IMDB_id": res['results'][0]['id'],
194
  "TMDB_id": result['id'],
195
  "title": result['title'],
196
  "type": result['media_type'],