mirror of
https://github.com/ngfchl/ptools
synced 2023-07-10 13:41:22 +08:00
修复部分站点上传量下载量解析错误的bug
This commit is contained in:
@@ -1920,10 +1920,10 @@ class PtSpider:
|
||||
|
||||
downloaded = ''.join(
|
||||
details_html.xpath(site.downloaded_rule)
|
||||
).replace(':', '').replace('\xa0\xa0', '').replace('i', '').strip(' ')
|
||||
).replace(':', '').replace('\xa0\xa0', '').replace('i', '').replace(',', '').strip(' ')
|
||||
uploaded = ''.join(
|
||||
details_html.xpath(site.uploaded_rule)
|
||||
).replace(':', '').replace('i', '').strip(' ')
|
||||
).replace(':', '').replace('i', '').replace(',', '').strip(' ')
|
||||
if 'hdchina' in site.url:
|
||||
downloaded = downloaded.split('(')[0].replace(':', '').strip()
|
||||
uploaded = uploaded.split('(')[0].replace(':', '').strip()
|
||||
|
||||
Reference in New Issue
Block a user