清除获取的分享率中的异常字符

This commit is contained in:
ngfchl
2022-12-13 10:59:16 +08:00
parent 27276990fe
commit 9234f10fbc

View File

@@ -1766,7 +1766,7 @@ class PtSpider:
details_html.xpath(site.ratio_rule)
).lower().replace(',', '').replace('无限', 'inf').replace('', 'inf'). \
replace('inf.', 'inf').replace(
'null', 'inf').replace('---', 'inf').replace('-', 'inf').strip(
'null', 'inf').replace('---', 'inf').replace('-', 'inf').replace('\xa0', '').strip(
']:').strip('').strip()
if not ratio:
ratio = ''.join(