mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-06-11 10:40:18 +08:00
test: 修复单测 warnings 并精确忽略上游弃用告警 (#5889)
This commit is contained in:
@@ -116,7 +116,7 @@ class NexusPhpSiteUserInfo(SiteParserBase):
|
||||
has_ucoin, self.bonus = self._parse_ucoin(html)
|
||||
if has_ucoin:
|
||||
return
|
||||
tmps = html.xpath('//a[contains(@href,"mybonus")]/text()') if html else None
|
||||
tmps = html.xpath('//a[contains(@href,"mybonus")]/text()') if html is not None else None
|
||||
if tmps:
|
||||
bonus_text = str(tmps[0]).strip()
|
||||
bonus_match = re.search(r"([\d,.]+)", bonus_text)
|
||||
|
||||
Reference in New Issue
Block a user