mirror of
https://github.com/vikstrous/pirate-get
synced 2025-04-11 00:08:38 +02:00
Fixed regex to match integer sizes
This commit is contained in:
parent
9020c0b7a7
commit
a3e875cf07
@ -68,8 +68,9 @@ def main():
|
||||
found = re.findall(""""(magnet\:\?xt=[^"]*)|<td align="right">([^<]+)</td>""", res)
|
||||
|
||||
# get sizes as well and substitute the character
|
||||
sizes = [ match.replace(" ", " ") for match in re.findall("(?<=Size )[0-9]+\.[0-9]+\ \;[KMGT]iB",res) ]
|
||||
|
||||
# print res
|
||||
sizes = [ match.replace(" ", " ") for match in re.findall("(?<=Size )[0-9.]+\ \;[KMGT]iB",res) ]
|
||||
# print sizes
|
||||
state = "seeds"
|
||||
curr = ['',0,0] #magnet, seeds, leeches
|
||||
for f in found:
|
||||
|
Loading…
Reference in New Issue
Block a user