Skip to content

Commit

Permalink
fix(ehentai): 修正搜索结果的解析逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
NekoAria committed Jan 6, 2023
1 parent 195ff89 commit d01f14d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion PicImageSearch/model/ehentai.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ def _arrange(self, data: PyQuery) -> None:
or data.find(".gl3t img")
)
self.thumbnail = thumbnail.attr("data-src") or thumbnail.attr("src")
self.type = data.find(".ct3").eq(0).text()
_type = data.find(".cs") or data.find(".cn")
self.type = _type.eq(0).text()
self.date = data.find("[id^='posted']").eq(0).text()
self.tags = [
i.text() for i in data.find("div[class=gt],div[class=gtl]").items()
Expand Down

0 comments on commit d01f14d

Please sign in to comment.