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"):