Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
yasirarism authored Sep 24, 2024
1 parent 722695e commit 5616f17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions misskaty/plugins/web_scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ async def getDataMovieku(msg, kueri, CurrentPage, user, strings):
await msg.edit_msg(
f"ERROR: Failed to fetch data from {exc.request.url} - <code>{exc}</code>"
)
return None, None
return None, 0, None
r = BeautifulSoup(data, "lxml")
res = r.find_all(class_="bx")
for i in res:
Expand All @@ -260,7 +260,7 @@ async def getDataMovieku(msg, kueri, CurrentPage, user, strings):
moviekudata.append({"judul": judul, "link": link, "type": typee})
if not moviekudata:
await msg.edit_msg(strings("no_result"), del_in=5)
return None, None
return None, 0, None
SCRAP_DICT.add(msg.id, [split_arr(moviekudata, 6), kueri], timeout=1800)
index = int(CurrentPage - 1)
PageLen = len(SCRAP_DICT[msg.id][0])
Expand Down

0 comments on commit 5616f17

Please sign in to comment.