mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-06 03:54:50 +00:00
Change API and add justwatch
This commit is contained in:
parent
42a77965be
commit
d66ad95c7a
1 changed files with 2 additions and 2 deletions
|
|
@ -150,8 +150,8 @@ async def imdb_search_en(kueri, message):
|
||||||
msg = ""
|
msg = ""
|
||||||
buttons = InlineKeyboard(row_width=4)
|
buttons = InlineKeyboard(row_width=4)
|
||||||
try:
|
try:
|
||||||
r = await http.get(f"{IMDB_API}/search?query={kueri}")
|
r = await http.get(f"{IMDB_API}?query={kueri}")
|
||||||
res = json.loads(r.text).get("results")
|
res = json.loads(r.json()).get("results")
|
||||||
if not res:
|
if not res:
|
||||||
return await k.edit_caption(f"⛔️ Result not found for keywords: <code>{kueri}</code>")
|
return await k.edit_caption(f"⛔️ Result not found for keywords: <code>{kueri}</code>")
|
||||||
msg += f"🎬 Found ({len(res)}) result for keywords: <code>{kueri}</code>\n\n"
|
msg += f"🎬 Found ({len(res)}) result for keywords: <code>{kueri}</code>\n\n"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue