From be15e9871c5450ac86b69890df6de434ef8f875d Mon Sep 17 00:00:00 2001 From: xiaoQQya Date: Tue, 10 Mar 2026 19:42:04 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E7=AB=99=E7=82=B9=20?= =?UTF-8?q?hhanclub=20=E7=94=A8=E6=88=B7=E7=AD=89=E7=BA=A7=E4=B8=8E?= =?UTF-8?q?=E5=8A=A0=E5=85=A5=E6=97=B6=E9=97=B4=E8=8E=B7=E5=8F=96=E5=85=BC?= =?UTF-8?q?=E5=AE=B9=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/modules/indexer/parser/nexus_hhanclub.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/modules/indexer/parser/nexus_hhanclub.py b/app/modules/indexer/parser/nexus_hhanclub.py index 01d4a3e5..ead88f55 100644 --- a/app/modules/indexer/parser/nexus_hhanclub.py +++ b/app/modules/indexer/parser/nexus_hhanclub.py @@ -50,7 +50,7 @@ class NexusHhanclubSiteUserInfo(NexusPhpSiteUserInfo): if not StringUtils.is_valid_html_element(html): return # 加入时间 - join_at_text = html.xpath('//div[@class="grid grid-cols-3 justify-items-start gap-4 leading-6 text-base"][2]/div[4]/span[2]/span/@title') + join_at_text = html.xpath('//span[contains(text(), "加入日期")]/following-sibling::span/span/@title') if join_at_text: self.join_at = StringUtils.unify_datetime_str(join_at_text[0].strip()) finally: @@ -59,6 +59,6 @@ class NexusHhanclubSiteUserInfo(NexusPhpSiteUserInfo): def _get_user_level(self, html): super()._get_user_level(html) - user_level_path = html.xpath('//b[@class="User_Name"]/text()') + user_level_path = html.xpath('//b[contains(@class, "_Name")]/text()') if user_level_path: self.user_level = user_level_path[0]