Spaces:
Running
Running
BinaryONe
commited on
Commit
·
ae8ac11
1
Parent(s):
800d7f0
Callback Update
Browse files
FileStream/bot/plugins/FileHandlers/callback.py
CHANGED
@@ -159,9 +159,10 @@ async def cb_data(bot: Client, update: CallbackQuery):
|
|
159 |
#name = file_caption if (file_caption) != "None/Unknown" else file_name
|
160 |
from FileStream.Tools.cleanup import Get_Title_Year
|
161 |
title, year = Get_Title_Year(name)
|
162 |
-
print(f"ANY SEARCH :{title} YEAR :{year}
|
163 |
-
|
164 |
-
|
|
|
165 |
if msg_type == 'MOVIE':
|
166 |
resp=search_tmdb_movies(name)
|
167 |
print("TMDB Movie Response:",resp,"\n IMDB",res)
|
|
|
159 |
#name = file_caption if (file_caption) != "None/Unknown" else file_name
|
160 |
from FileStream.Tools.cleanup import Get_Title_Year
|
161 |
title, year = Get_Title_Year(name)
|
162 |
+
print(f"ANY SEARCH :{title} YEAR :{year} ")
|
163 |
+
print("TMDB",search_tmdb_any(title, year))
|
164 |
+
res = imdb.search(title, year=year)
|
165 |
+
print(f"IMDB Response :{imdb.get_by_id(res[0]['id'])}")
|
166 |
if msg_type == 'MOVIE':
|
167 |
resp=search_tmdb_movies(name)
|
168 |
print("TMDB Movie Response:",resp,"\n IMDB",res)
|