summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-06-08 20:50:46 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-06-08 20:50:46 +0200
commit13b7ec71c129ad2f5f3562b82d23cb0f6441ab9e (patch)
tree57316aa125c0e99af091154cc15d5da5f9e15e55 /module/plugins/hoster
parentfixes? (diff)
downloadpyload-13b7ec71c129ad2f5f3562b82d23cb0f6441ab9e.tar.xz
erniebs x7 fix
Diffstat (limited to 'module/plugins/hoster')
-rw-r--r--module/plugins/hoster/X7To.py2
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))