From 708e08f343967ff8d695973f3ff9cbb7050519d8 Mon Sep 17 00:00:00 2001
From: yasirarism <55983182+yasirarism@users.noreply.github.com>
Date: Thu, 12 Jan 2023 12:03:54 +0700
Subject: [PATCH] Hmm
---
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 2182b982..ade76996 100644
--- a/misskaty/plugins/web_scraper.py
+++ b/misskaty/plugins/web_scraper.py
@@ -128,7 +128,7 @@ async def getDataPahe(msg, kueri, CurrentPage):
# Nodrakor GetData
async def getDataNodrakor(msg, kueri, CurrentPage):
if not SCRAP_DICT.get(msg.id):
- nodrakor = await http.get(f'https://zonafilm.icu/?s={kueri}', headers=headers)
+ nodrakor = await http.get(f'http://173.212.199.27/?s={kueri}', headers=headers)
text = BeautifulSoup(nodrakor.text, "lxml")
entry = text.find_all(class_="entry-header")
if "Nothing Found" in entry[0].text:
@@ -150,10 +150,10 @@ async def getDataNodrakor(msg, kueri, CurrentPage):
index = int(CurrentPage - 1)
PageLen = len(SCRAP_DICT[msg.id][0])
- NodrakorResult = f"#Nodrakor Results For: {kueri}\n\n" if kueri else f"#Nodrakor Latest:\nš Use /zonafilm [title] to start search with title.\n\n"
+ NodrakorResult = f"#Nodrakor Results For: {kueri}\n\n" if kueri else f"#Nodrakor Latest:\nš Use /nodrakor [title] to start search with title.\n\n"
for c, i in enumerate(SCRAP_DICT[msg.id][0][index], start=1):
NodrakorResult += f"{c}. {i['judul']}\nGenre: {i['genre']}\n"
- NodrakorResult += f"Extract: /zonafilm_scrap {i['link']}\n\n" if "/tv/" not in i["link"] else "\n"
+ NodrakorResult += f"Extract: /nodrakor_scrap {i['link']}\n\n" if "/tv/" not in i["link"] else "\n"
IGNORE_CHAR = "[]"
NodrakorResult = ''.join(i for i in NodrakorResult if not i in IGNORE_CHAR)
return NodrakorResult, PageLen