mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2025-12-29 17:44:50 +00:00
Change API and add justwatch
This commit is contained in:
parent
d0d6c51d4e
commit
e842c888c5
1 changed files with 2 additions and 2 deletions
|
|
@ -376,7 +376,7 @@ async def imdb_id_callback(_, query):
|
|||
)
|
||||
else:
|
||||
markup = InlineKeyboardMarkup([[InlineKeyboardButton("🎬 Open IMDB", url=url)]])
|
||||
if thumb := r_json.get("thumb"):
|
||||
if thumb := r_json.get("image"):
|
||||
try:
|
||||
await query.message.edit_media(InputMediaPhoto(thumb, caption=res_str), reply_markup=markup)
|
||||
except (MediaEmpty, PhotoInvalidDimensions, WebpageMediaEmpty):
|
||||
|
|
@ -504,7 +504,7 @@ async def imdb_en_callback(bot, query):
|
|||
)
|
||||
else:
|
||||
markup = InlineKeyboardMarkup([[InlineKeyboardButton("🎬 Open IMDB", url=url)]])
|
||||
if thumb := r_json.get("thumb"):
|
||||
if thumb := r_json.get("image"):
|
||||
try:
|
||||
await query.message.edit_media(InputMediaPhoto(thumb, caption=res_str), reply_markup=markup)
|
||||
except (MediaEmpty, PhotoInvalidDimensions, WebpageMediaEmpty):
|
||||
|
|
|
|||
Loading…
Reference in a new issue