diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-06-08 20:50:46 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-06-08 20:50:46 +0200 |
commit | 13b7ec71c129ad2f5f3562b82d23cb0f6441ab9e (patch) | |
tree | 57316aa125c0e99af091154cc15d5da5f9e15e55 /module/plugins/hoster | |
parent | fixes? (diff) | |
download | pyload-13b7ec71c129ad2f5f3562b82d23cb0f6441ab9e.tar.xz |
erniebs x7 fix
Diffstat (limited to 'module/plugins/hoster')
-rw-r--r-- | module/plugins/hoster/X7To.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/plugins/hoster/X7To.py b/module/plugins/hoster/X7To.py index 5bf1403b8..dba7338e4 100644 --- a/module/plugins/hoster/X7To.py +++ b/module/plugins/hoster/X7To.py @@ -67,7 +67,7 @@ class X7To(Hoster): self.pyfile.name = fileInfo.group(1)
if self.account:
trafficLeft = self.account.getAccountInfo(self.user)["trafficleft"]
- units = float(fileInfo.group(2).replace(",", "."))
+ units = float(fileInfo.group(2).replace(".", "").replace(",", "."))
pow = {'KB': 1, 'MB': 2, 'GB': 3}[fileInfo.group(3)]
size = int(units * 1024 ** pow)
self.logDebug("filesize: %s trafficleft: %s" % (size, trafficLeft))
|