兼容inf.分享率

This commit is contained in:
ngfchl
2022-12-05 11:21:02 +08:00
parent 247c8901b2
commit 6d0a926f9a

View File

@@ -1762,7 +1762,8 @@ class PtSpider:
try:
ratio = ''.join(
details_html.xpath(site.ratio_rule)
).replace(',', '').replace('无限', 'inf').replace('', 'inf').replace(
).lower().replace(',', '').replace('无限', 'inf').replace('', 'inf'). \
replace('inf.', 'inf').replace(
'null', 'inf').replace('---', 'inf').replace('-', 'inf').strip(
']:').strip('').strip()
# 分享率告警通知