summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/accounts')
-rw-r--r--module/plugins/accounts/PremiumTo.py2
-rw-r--r--module/plugins/accounts/ShareonlineBiz.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/accounts/PremiumTo.py b/module/plugins/accounts/PremiumTo.py
index efc64706b..ef3d0cc19 100644
--- a/module/plugins/accounts/PremiumTo.py
+++ b/module/plugins/accounts/PremiumTo.py
@@ -19,7 +19,7 @@ class PremiumTo(Account):
api_r = req.load("http://premium.to/api/straffic.php",
get={'username': self.username, 'password': self.password})
- trafficleft = float(sum(map(int, api_r.split(';')))) / 1024 #@TODO: Remove `/ 1024` in 0.4.10
+ trafficleft = sum(map(float, api_r.split(';'))) / 1024 #@TODO: Remove `/ 1024` in 0.4.10
return {'premium': True, 'trafficleft': trafficleft, 'validuntil': -1}
diff --git a/module/plugins/accounts/ShareonlineBiz.py b/module/plugins/accounts/ShareonlineBiz.py
index c08d6f963..fea278559 100644
--- a/module/plugins/accounts/ShareonlineBiz.py
+++ b/module/plugins/accounts/ShareonlineBiz.py
@@ -49,7 +49,7 @@ class ShareonlineBiz(Account):
validuntil = float(api['expire_date'])
if 'traffic_1d' in api:
- traffic = int(api['traffic_1d'].split(";")[0])
+ traffic = float(api['traffic_1d'].split(";")[0])
maxtraffic = max(maxtraffic, traffic)
trafficleft = maxtraffic - traffic