mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2025-12-29 09:44:50 +00:00
Fix scraper
This commit is contained in:
parent
f114690c5c
commit
81bc0ca6a0
1 changed files with 3 additions and 2 deletions
|
|
@ -46,6 +46,7 @@ webdb = dbname["web"]
|
||||||
|
|
||||||
web = {
|
web = {
|
||||||
"yasirapi": "https://yasirapi.eu.org",
|
"yasirapi": "https://yasirapi.eu.org",
|
||||||
|
"yasirapi_v2": "https://v2.yasirapi.eu.org",
|
||||||
"pahe": "pahe.ink",
|
"pahe": "pahe.ink",
|
||||||
"savefilm21": "https://sf1.savefilm21.digital",
|
"savefilm21": "https://sf1.savefilm21.digital",
|
||||||
"melongmovie": "https://melongmovie.site",
|
"melongmovie": "https://melongmovie.site",
|
||||||
|
|
@ -115,9 +116,9 @@ async def getDatalk21(msg, kueri, CurrentPage, strings):
|
||||||
with contextlib.redirect_stdout(sys.stderr):
|
with contextlib.redirect_stdout(sys.stderr):
|
||||||
try:
|
try:
|
||||||
if kueri:
|
if kueri:
|
||||||
lk21json = await fetch.get(f"{web['yasirapi']}/lk21?q={kueri}")
|
lk21json = await fetch.get(f"{web['yasirapi_v2']}/lk21?q={kueri}")
|
||||||
else:
|
else:
|
||||||
lk21json = await fetch.get(f"{web['yasirapi']}/lk21")
|
lk21json = await fetch.get(f"{web['yasirapi_v2']}/lk21")
|
||||||
lk21json.raise_for_status()
|
lk21json.raise_for_status()
|
||||||
except httpx.HTTPError as exc:
|
except httpx.HTTPError as exc:
|
||||||
await msg.edit_msg(
|
await msg.edit_msg(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue