diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-10-09 18:18:23 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-10-09 18:18:23 +0200 |
commit | 57cce481460efd7c9897c59652b544ef65063837 (patch) | |
tree | d3e8f4d1465e32c20028258d941c7eb56f15943d /module/Utils.py | |
parent | add filejungle.com, fix sharerapid.com (diff) | |
download | pyload-57cce481460efd7c9897c59652b544ef65063837.tar.xz |
updated js/mootools, some parts now coffeescript
Diffstat (limited to 'module/Utils.py')
-rw-r--r-- | module/Utils.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/module/Utils.py b/module/Utils.py index 1fdf2cbc6..939baad96 100644 --- a/module/Utils.py +++ b/module/Utils.py @@ -129,9 +129,7 @@ def uniqify(seq, idfun=None): def parseFileSize(string): #returns bytes - string = string.strip().lower() - p = re.compile(r"(\d+[\.,]\d+)(.*)") - m = p.match(string) + m = re.match(r"(\d*[\.,]?\d+)(.*)", string.strip().lower()) if m: traffic = float(m.group(1).replace(",", ".")) unit = m.group(2).strip() |