mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-05 03:34:51 +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:
|
else:
|
||||||
markup = InlineKeyboardMarkup([[InlineKeyboardButton("🎬 Open IMDB", url=url)]])
|
markup = InlineKeyboardMarkup([[InlineKeyboardButton("🎬 Open IMDB", url=url)]])
|
||||||
if thumb := r_json.get("thumb"):
|
if thumb := r_json.get("image"):
|
||||||
try:
|
try:
|
||||||
await query.message.edit_media(InputMediaPhoto(thumb, caption=res_str), reply_markup=markup)
|
await query.message.edit_media(InputMediaPhoto(thumb, caption=res_str), reply_markup=markup)
|
||||||
except (MediaEmpty, PhotoInvalidDimensions, WebpageMediaEmpty):
|
except (MediaEmpty, PhotoInvalidDimensions, WebpageMediaEmpty):
|
||||||
|
|
@ -504,7 +504,7 @@ async def imdb_en_callback(bot, query):
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
markup = InlineKeyboardMarkup([[InlineKeyboardButton("🎬 Open IMDB", url=url)]])
|
markup = InlineKeyboardMarkup([[InlineKeyboardButton("🎬 Open IMDB", url=url)]])
|
||||||
if thumb := r_json.get("thumb"):
|
if thumb := r_json.get("image"):
|
||||||
try:
|
try:
|
||||||
await query.message.edit_media(InputMediaPhoto(thumb, caption=res_str), reply_markup=markup)
|
await query.message.edit_media(InputMediaPhoto(thumb, caption=res_str), reply_markup=markup)
|
||||||
except (MediaEmpty, PhotoInvalidDimensions, WebpageMediaEmpty):
|
except (MediaEmpty, PhotoInvalidDimensions, WebpageMediaEmpty):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue