This commit is contained in:
icebreak
2024-05-11 01:55:40 +08:00
committed by GitHub
parent 2e63061e6a
commit 1b5d5e7565

View File

@@ -60,12 +60,12 @@ class FileListSiteUserInfo(ISiteUserInfo):
ratio_html = html.xpath('//table//tr/td[text()="Share ratio"]/following-sibling::td//text()')
if ratio_html:
share_ratio = ratio_html[0]
share_ratio = StringUtils.str_float(ratio_html[0])
self.ratio = 0 if self.download == 0 else share_ratio
seed_html = html.xpath('//table//tr/td[text()="Seed bonus"]/following-sibling::td//text()')
if seed_html:
self.seeding = seed_html[1]
self.seeding = StringUtils.str_int(seed_html[1])
self.seeding_size = StringUtils.num_filesize(seed_html[3])
user_level_html = html.xpath('//table//tr/td[text()="Class"]/following-sibling::td//text()')