From da8b60d9409d4377f11de962d9e3112f929fdf1d Mon Sep 17 00:00:00 2001 From: Yasir Aris M Date: Sun, 25 Feb 2024 09:19:23 +0700 Subject: [PATCH] Custom domain for pahe Signed-off-by: Yasir Aris M --- misskaty/plugins/web_scraper.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/misskaty/plugins/web_scraper.py b/misskaty/plugins/web_scraper.py index 73c68242..14404817 100644 --- a/misskaty/plugins/web_scraper.py +++ b/misskaty/plugins/web_scraper.py @@ -45,7 +45,7 @@ webdb = dbname["web"] web = { "yasirapi": "https://yasirapi.eu.org", - "pahe": "https://pahe.me", + "pahe": "https://pahe.ink", "savefilm21": "https://savefilm21.digital", "melongmovie": "https://melongmovie.site", "terbit21": "https://terbit21.gold", @@ -150,9 +150,9 @@ async def getDataPahe(msg, kueri, CurrentPage, strings): with contextlib.redirect_stdout(sys.stderr): try: 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: - pahejson = await fetch.get(f"{web['yasirapi']}/pahe") + pahejson = await fetch.get(f"{web['yasirapi']}/pahe?domain={web['pahe']}") pahejson.raise_for_status() except httpx.HTTPError as exc: await msg.edit_msg(f"ERROR: Failed to fetch data from {exc.request.url} - {exc}")