From 13e5b6fe9ec60168f2cb9926b7fe1d875f56502c Mon Sep 17 00:00:00 2001 From: ngfchl Date: Sun, 25 Dec 2022 17:12:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Diptorrents=E5=81=9A=E7=A7=8D?= =?UTF-8?q?=E4=BD=93=E7=A7=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pt_site/UtilityTool.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pt_site/UtilityTool.py b/pt_site/UtilityTool.py index e81bcef..11cd3fe 100644 --- a/pt_site/UtilityTool.py +++ b/pt_site/UtilityTool.py @@ -1746,7 +1746,12 @@ class PtSpider: seed_vol_all = 0 for seed_vol in seed_vol_list: # logger.info(etree.tostring(seed_vol)) - vol = ''.join(seed_vol.xpath('.//text()')) + if 'iptorrents.com' in site.url: + vol = ''.join(seed_vol.xpath('.//text()')) + vol = ''.join(re.findall(r'\((.*?)\)', vol)) + else: + vol = ''.join(seed_vol.xpath('.//text()')) + # logger.info(vol) if not len(vol) <= 0: size = FileSizeConvert.parse_2_byte(