From 2f5c14c3df64fd0d1506772fd7f616bcd82d6fdf Mon Sep 17 00:00:00 2001 From: ngfchl Date: Tue, 13 Dec 2022 10:48:00 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=82=E9=85=8DTTG=20inf=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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pt_site/UtilityTool.py b/pt_site/UtilityTool.py index 49eb4fd..5ee5c98 100644 --- a/pt_site/UtilityTool.py +++ b/pt_site/UtilityTool.py @@ -1771,7 +1771,7 @@ class PtSpider: if not ratio: ratio = ''.join( details_html.xpath('//font[@class="color_ratio"][1]/following-sibling::font[1]/text()[1]')) - if not ratio: + if ratio.count('上传量') > 1: # 适配TTG inf分享率 ratio = ''.join( details_html.xpath('//font[contains(text(),"分享率 ")][1]/following-sibling::text()[1]'))