From 6d0a926f9afd8254c1a232e1d05b081cb3d014bd Mon Sep 17 00:00:00 2001 From: ngfchl Date: Mon, 5 Dec 2022 11:21:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=BC=E5=AE=B9`inf.`=E5=88=86=E4=BA=AB?= =?UTF-8?q?=E7=8E=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pt_site/UtilityTool.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pt_site/UtilityTool.py b/pt_site/UtilityTool.py index 3bb733a..42c19ef 100644 --- a/pt_site/UtilityTool.py +++ b/pt_site/UtilityTool.py @@ -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() # 分享率告警通知