BinaryONe commited on
Commit
bf74c4e
·
1 Parent(s): 815b256

Callback Update

Browse files
FileStream/bot/plugins/FileHandlers/callback.py CHANGED
@@ -124,13 +124,14 @@ async def cb_data(bot: Client, update: CallbackQuery):
124
  #name = file_caption if (file_caption) != "None/Unknown" else file_name
125
  from FileStream.Tools.cleanup import Get_Title_Year
126
  title, year = Get_Title_Year(name)
127
- #year = int(year)
128
  get_imdb_id = json.loads(imdb.search(title, year=int(year)))
129
  #print(f"ANY SEARCH :{title} YEAR :{year} IMDB Response :{res}")
130
  #print("TMDB",search_tmdb_any(title, year))
131
  #print(f"IMDB ID :{get_imdb_id['results'][0]['id']}")
 
132
  res=json.loads(imdb.get_by_id(get_imdb_id['results'][0]['id']))
133
- print(f"ANY SEARCH :{name} YEAR :{year}\n Det_ID {get_imdb_id}\n IMDB Response :{res}")
134
  instruction = {
135
  "privacy_type": "PUBLIC",
136
  "user_id": user_id,
 
124
  #name = file_caption if (file_caption) != "None/Unknown" else file_name
125
  from FileStream.Tools.cleanup import Get_Title_Year
126
  title, year = Get_Title_Year(name)
127
+ print(f"** ANY SEARCH :{name} YEAR :{year}")
128
  get_imdb_id = json.loads(imdb.search(title, year=int(year)))
129
  #print(f"ANY SEARCH :{title} YEAR :{year} IMDB Response :{res}")
130
  #print("TMDB",search_tmdb_any(title, year))
131
  #print(f"IMDB ID :{get_imdb_id['results'][0]['id']}")
132
+ print(f"\n** GET_ID {get_imdb_id}")
133
  res=json.loads(imdb.get_by_id(get_imdb_id['results'][0]['id']))
134
+ print(f"\n** IMDB Response :{res}")
135
  instruction = {
136
  "privacy_type": "PUBLIC",
137
  "user_id": user_id,