Merge pull request #5559 from xiaoQQya/develop

This commit is contained in:
jxxghp
2026-03-10 21:01:57 +08:00
committed by GitHub

View File

@@ -50,7 +50,7 @@ class NexusHhanclubSiteUserInfo(NexusPhpSiteUserInfo):
if not StringUtils.is_valid_html_element(html): if not StringUtils.is_valid_html_element(html):
return 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: if join_at_text:
self.join_at = StringUtils.unify_datetime_str(join_at_text[0].strip()) self.join_at = StringUtils.unify_datetime_str(join_at_text[0].strip())
finally: finally:
@@ -59,6 +59,6 @@ class NexusHhanclubSiteUserInfo(NexusPhpSiteUserInfo):
def _get_user_level(self, html): def _get_user_level(self, html):
super()._get_user_level(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: if user_level_path:
self.user_level = user_level_path[0] self.user_level = user_level_path[0]