mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-07 20:34:52 +00:00
Custom domain for pahe
Signed-off-by: Yasir Aris M <git@yasirdev.my.id>
This commit is contained in:
parent
bfa0cf0b25
commit
da8b60d940
1 changed files with 3 additions and 3 deletions
|
|
@ -45,7 +45,7 @@ webdb = dbname["web"]
|
||||||
|
|
||||||
web = {
|
web = {
|
||||||
"yasirapi": "https://yasirapi.eu.org",
|
"yasirapi": "https://yasirapi.eu.org",
|
||||||
"pahe": "https://pahe.me",
|
"pahe": "https://pahe.ink",
|
||||||
"savefilm21": "https://savefilm21.digital",
|
"savefilm21": "https://savefilm21.digital",
|
||||||
"melongmovie": "https://melongmovie.site",
|
"melongmovie": "https://melongmovie.site",
|
||||||
"terbit21": "https://terbit21.gold",
|
"terbit21": "https://terbit21.gold",
|
||||||
|
|
@ -150,9 +150,9 @@ async def getDataPahe(msg, kueri, CurrentPage, strings):
|
||||||
with contextlib.redirect_stdout(sys.stderr):
|
with contextlib.redirect_stdout(sys.stderr):
|
||||||
try:
|
try:
|
||||||
if kueri:
|
if kueri:
|
||||||
pahejson = await fetch.get(f"{web['yasirapi']}/pahe?q={kueri}")
|
pahejson = await fetch.get(f"{web['yasirapi']}/pahe?q={kueri}&domain={web['pahe']}")
|
||||||
else:
|
else:
|
||||||
pahejson = await fetch.get(f"{web['yasirapi']}/pahe")
|
pahejson = await fetch.get(f"{web['yasirapi']}/pahe?domain={web['pahe']}")
|
||||||
pahejson.raise_for_status()
|
pahejson.raise_for_status()
|
||||||
except httpx.HTTPError as exc:
|
except httpx.HTTPError as exc:
|
||||||
await msg.edit_msg(f"ERROR: Failed to fetch data from {exc.request.url} - <code>{exc}</code>")
|
await msg.edit_msg(f"ERROR: Failed to fetch data from {exc.request.url} - <code>{exc}</code>")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue