Skip to content

Commit

Permalink
Fix search
Browse files Browse the repository at this point in the history
  • Loading branch information
Zokhoi authored and dipu-bd committed Aug 12, 2024
1 parent f55cce9 commit a42cd94
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sources/zh/69shuba.cx.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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("最近章节", ""),
}
)

Expand Down

0 comments on commit a42cd94

Please sign in to comment.