From 6f02488e88d0e9018afcf4722550806b96319128 Mon Sep 17 00:00:00 2001 From: Yasir Aris M Date: Wed, 11 Oct 2023 11:50:40 +0700 Subject: [PATCH] Fix gomov if no result Signed-off-by: Yasir Aris M --- misskaty/plugins/web_scraper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misskaty/plugins/web_scraper.py b/misskaty/plugins/web_scraper.py index dd3e9806..0d26d680 100644 --- a/misskaty/plugins/web_scraper.py +++ b/misskaty/plugins/web_scraper.py @@ -464,7 +464,7 @@ async def getDataGomov(msg, kueri, CurrentPage, user, strings): return None, 0, None text = BeautifulSoup(gomovv, "lxml") entry = text.find_all(class_="entry-header") - if entry[0].text.strip() == "Nothing Found": + if entry[0].text.strip() == "Tidak Ditemukan": if not kueri: await msg.edit_msg(strings("no_result"), del_in=5) else: @@ -498,7 +498,7 @@ async def getDataGomov(msg, kueri, CurrentPage, user, strings): index * 6 + c, f"gomovextract#{CurrentPage}#{c}#{user}#{msg.id}" ) ) - gomovResult += strings("unsupport_dl_btn") + gomovResult += strings("unsupport_dl_btn") return gomovResult, PageLen, extractbtn