summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/X7To.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hoster/X7To.py')
-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))