BinaryONe commited on
Commit ·
cf4f17d
1
Parent(s): 8d4d962
Callback Update
Browse files
FileStream/bot/plugins/FileHandlers/callback.py
CHANGED
|
@@ -124,12 +124,13 @@ 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=year))
|
| 129 |
#print(f"ANY SEARCH :{title} YEAR :{year} IMDB Response :{res}")
|
| 130 |
#print("TMDB",search_tmdb_any(title, year))
|
| 131 |
-
|
| 132 |
res=json.loads(imdb.get_by_id(get_imdb_id['results'][0]['id']))
|
|
|
|
| 133 |
instruction = {
|
| 134 |
"privacy_type": "PUBLIC",
|
| 135 |
"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 |
+
#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} IMDB Response :{res}")
|
| 134 |
instruction = {
|
| 135 |
"privacy_type": "PUBLIC",
|
| 136 |
"user_id": user_id,
|