mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-07 12:24:51 +00:00
Change API and add justwatch
This commit is contained in:
parent
8168614f92
commit
5f448aa551
1 changed files with 6 additions and 6 deletions
|
|
@ -338,13 +338,13 @@ async def imdb_id_callback(_, query):
|
||||||
creator = creator[:-2]
|
creator = creator[:-2]
|
||||||
res_str += f"<b>Penulis:</b> {creator}\n"
|
res_str += f"<b>Penulis:</b> {creator}\n"
|
||||||
if actors := r_json.get("actor"):
|
if actors := r_json.get("actor"):
|
||||||
actor = ""
|
actors = ""
|
||||||
for i in actors:
|
for i in actors:
|
||||||
name = i["name"]
|
name = i["name"]
|
||||||
url = i["url"]
|
url = i["url"]
|
||||||
actors += f"<a href='https://www.imdb.com{url}'>{name}</a>, "
|
actors += f"<a href='https://www.imdb.com{url}'>{name}</a>, "
|
||||||
actor = actors[:-2]
|
actors = actors[:-2]
|
||||||
res_str += f"<b>Pemeran:</b> {actor}\n\n"
|
res_str += f"<b>Pemeran:</b> {actors}\n\n"
|
||||||
if deskripsi := r_json.get("description"):
|
if deskripsi := r_json.get("description"):
|
||||||
summary = GoogleTranslator("auto", "id").translate(deskripsi)
|
summary = GoogleTranslator("auto", "id").translate(deskripsi)
|
||||||
res_str += f"<b>📜 Plot: </b> <code>{summary}</code>\n\n"
|
res_str += f"<b>📜 Plot: </b> <code>{summary}</code>\n\n"
|
||||||
|
|
@ -467,13 +467,13 @@ async def imdb_en_callback(bot, query):
|
||||||
creator = creator[:-2]
|
creator = creator[:-2]
|
||||||
res_str += f"<b>Writer:</b> {creator}\n"
|
res_str += f"<b>Writer:</b> {creator}\n"
|
||||||
if actors := r_json.get("actor"):
|
if actors := r_json.get("actor"):
|
||||||
actor = ""
|
actors = ""
|
||||||
for i in actors:
|
for i in actors:
|
||||||
name = i["name"]
|
name = i["name"]
|
||||||
url = i["url"]
|
url = i["url"]
|
||||||
actors += f"<a href='https://www.imdb.com{url}'>{name}</a>, "
|
actors += f"<a href='https://www.imdb.com{url}'>{name}</a>, "
|
||||||
actor = actors[:-2]
|
actors = actors[:-2]
|
||||||
res_str += f"<b>Stars:</b> {actor}\n\n"
|
res_str += f"<b>Stars:</b> {actors}\n\n"
|
||||||
if description := r_json.get("description"):
|
if description := r_json.get("description"):
|
||||||
res_str += f"<b>📜 Summary: </b> <code>{description}</code>\n\n"
|
res_str += f"<b>📜 Summary: </b> <code>{description}</code>\n\n"
|
||||||
if keywd := r_json.get("keywords"):
|
if keywd := r_json.get("keywords"):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue