From d01f14d1b7a3aadf62ac07015bcd327ecd760f27 Mon Sep 17 00:00:00 2001 From: Neko Aria <990879119@qq.com> Date: Fri, 6 Jan 2023 16:27:59 +0800 Subject: [PATCH] =?UTF-8?q?fix(ehentai):=20=E4=BF=AE=E6=AD=A3=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E7=BB=93=E6=9E=9C=E7=9A=84=E8=A7=A3=E6=9E=90=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PicImageSearch/model/ehentai.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PicImageSearch/model/ehentai.py b/PicImageSearch/model/ehentai.py index 9498d11f..66f1ef1f 100644 --- a/PicImageSearch/model/ehentai.py +++ b/PicImageSearch/model/ehentai.py @@ -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()