Fix klikxxi if search not found

Signed-off-by: Yasir Aris M <git@yasirdev.my.id>
This commit is contained in:
Yasir Aris M 2024-05-17 07:35:16 +07:00 committed by GitHub
parent 16e4f58f4f
commit 2372ba3129
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -32,7 +32,7 @@ __HELP__ = """
/movieku [query <optional>] - Scrape website data from Movieku.cc
/kusonime [query <optional>] - Scrape website data from Kusonime
/lendrive [query <optional>] - Scrape website data from Lendrive
/gomov [query <optional>] - Scrape website data from GoMov.
/klikxxi [query <optional>] - Scrape website data from Klikxxi aka GoMov.
/samehadaku [query <optional>] - Scrape website data from Samehadaku.
/nodrakor [query <optional>] - Scrape website data from NoDrakor
"""
@ -476,7 +476,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() == "Tidak Ditemukan":
if entry[0].text.strip() == "Nothing Found":
if not kueri:
await msg.edit_msg(strings("no_result"), del_in=5)
else: