From 9234f10fbcac43fe6d566ee1e2f95a99678e5221 Mon Sep 17 00:00:00 2001 From: ngfchl Date: Tue, 13 Dec 2022 10:59:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=85=E9=99=A4=E8=8E=B7=E5=8F=96=E7=9A=84?= =?UTF-8?q?=E5=88=86=E4=BA=AB=E7=8E=87=E4=B8=AD=E7=9A=84=E5=BC=82=E5=B8=B8?= =?UTF-8?q?=E5=AD=97=E7=AC=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pt_site/UtilityTool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pt_site/UtilityTool.py b/pt_site/UtilityTool.py index b55bdd1..1c423c5 100644 --- a/pt_site/UtilityTool.py +++ b/pt_site/UtilityTool.py @@ -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(