Skip to content

Commit

Permalink
Fix scraper
Browse files Browse the repository at this point in the history
  • Loading branch information
yasirarism authored Aug 28, 2024
1 parent f114690 commit 81bc0ca
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions misskaty/plugins/web_scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@

web = {
"yasirapi": "https://yasirapi.eu.org",
"yasirapi_v2": "https://v2.yasirapi.eu.org",
"pahe": "pahe.ink",
"savefilm21": "https://sf1.savefilm21.digital",
"melongmovie": "https://melongmovie.site",
Expand Down Expand Up @@ -115,9 +116,9 @@ async def getDatalk21(msg, kueri, CurrentPage, strings):
with contextlib.redirect_stdout(sys.stderr):
try:
if kueri:
lk21json = await fetch.get(f"{web['yasirapi']}/lk21?q={kueri}")
lk21json = await fetch.get(f"{web['yasirapi_v2']}/lk21?q={kueri}")
else:
lk21json = await fetch.get(f"{web['yasirapi']}/lk21")
lk21json = await fetch.get(f"{web['yasirapi_v2']}/lk21")
lk21json.raise_for_status()
except httpx.HTTPError as exc:
await msg.edit_msg(
Expand Down

0 comments on commit 81bc0ca

Please sign in to comment.