From 13b7ec71c129ad2f5f3562b82d23cb0f6441ab9e Mon Sep 17 00:00:00 2001 From: RaNaN Date: Wed, 8 Jun 2011 20:50:46 +0200 Subject: erniebs x7 fix --- module/plugins/hoster/X7To.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'module/plugins/hoster') 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)) -- cgit v1.2.3