From 5f448aa551088d3abad75d7a810fa36efeb45d54 Mon Sep 17 00:00:00 2001 From: yasir Date: Tue, 17 Jan 2023 16:23:09 +0700 Subject: [PATCH] Change API and add justwatch --- misskaty/plugins/imdb_search.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/misskaty/plugins/imdb_search.py b/misskaty/plugins/imdb_search.py index 8fdd3420..26cb895a 100644 --- a/misskaty/plugins/imdb_search.py +++ b/misskaty/plugins/imdb_search.py @@ -338,13 +338,13 @@ async def imdb_id_callback(_, query): creator = creator[:-2] res_str += f"Penulis: {creator}\n" if actors := r_json.get("actor"): - actor = "" + actors = "" for i in actors: name = i["name"] url = i["url"] actors += f"{name}, " - actor = actors[:-2] - res_str += f"Pemeran: {actor}\n\n" + actors = actors[:-2] + res_str += f"Pemeran: {actors}\n\n" if deskripsi := r_json.get("description"): summary = GoogleTranslator("auto", "id").translate(deskripsi) res_str += f"📜 Plot: {summary}\n\n" @@ -467,13 +467,13 @@ async def imdb_en_callback(bot, query): creator = creator[:-2] res_str += f"Writer: {creator}\n" if actors := r_json.get("actor"): - actor = "" + actors = "" for i in actors: name = i["name"] url = i["url"] actors += f"{name}, " - actor = actors[:-2] - res_str += f"Stars: {actor}\n\n" + actors = actors[:-2] + res_str += f"Stars: {actors}\n\n" if description := r_json.get("description"): res_str += f"📜 Summary: {description}\n\n" if keywd := r_json.get("keywords"):