From a42cd94261b9bccac7d6a5e05d8514b009831cbe Mon Sep 17 00:00:00 2001 From: Zokhoi <20432565+Zokhoi@users.noreply.github.com> Date: Sat, 10 Aug 2024 19:56:53 +0800 Subject: [PATCH] Fix search --- sources/zh/69shuba.cx.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sources/zh/69shuba.cx.py b/sources/zh/69shuba.cx.py index 286f08b06..ab82608e0 100644 --- a/sources/zh/69shuba.cx.py +++ b/sources/zh/69shuba.cx.py @@ -43,7 +43,7 @@ def initialize(self): def search_novel(self, query): query = urllib.parse.quote(query.encode("gbk")) data = f"searchkey={query}&searchtype=all" - soup = self.get_soup( + soup = self.post_soup( search_url, headers=headers, data=data, @@ -55,8 +55,8 @@ def search_novel(self, query): results.append( { "title": novel.select_one("h3 a:not([imgbox])").text.title(), - "url": self.absolute_url(novel.select_one("h3 a.imgbox")["href"]), - "info": "Latest: %s" % novel.select_one("div.zxzj p").text, + "url": self.absolute_url(novel.select_one("h3 a")["href"]), + "info": "Latest: %s" % novel.select_one("div.zxzj p").text.replace("最近章节", ""), } )