From d5eb005f7450557da3f3b3dc4194688e636fa7c5 Mon Sep 17 00:00:00 2001 From: yasir Date: Tue, 17 Jan 2023 17:24:13 +0700 Subject: [PATCH] Fix --- misskaty/plugins/imdb_search.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misskaty/plugins/imdb_search.py b/misskaty/plugins/imdb_search.py index 9e70b084..728486f4 100644 --- a/misskaty/plugins/imdb_search.py +++ b/misskaty/plugins/imdb_search.py @@ -277,7 +277,7 @@ async def imdb_id_callback(_, query): ) sop = BeautifulSoup(resp, "lxml") r_json = json.loads(sop.find("script", attrs={"type": "application/ld+json"}).contents[0]) - ott = await search_jw(r_json.get("name"), "en_ID") + ott = await search_jw(r_json.get("name"), "ID") typee = f"{r_json.get('@type', '')}" res_str = "" if judul := r_json.get("name"): @@ -406,7 +406,7 @@ async def imdb_en_callback(bot, query): ) sop = BeautifulSoup(resp, "lxml") r_json = json.loads(sop.find("script", attrs={"type": "application/ld+json"}).contents[0]) - ott = await search_jw(r_json.get("name"), "en_US") + ott = await search_jw(r_json.get("name"), "US") typee = f"{r_json.get('@type', '')}" res_str = "" if judul := r_json.get("name"):