summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/RapidgatorNet.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/accounts/RapidgatorNet.py')
-rw-r--r--module/plugins/accounts/RapidgatorNet.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/accounts/RapidgatorNet.py b/module/plugins/accounts/RapidgatorNet.py
index 74825a0f9..85adc71a3 100644
--- a/module/plugins/accounts/RapidgatorNet.py
+++ b/module/plugins/accounts/RapidgatorNet.py
@@ -24,7 +24,7 @@ from module.common.json_layer import json_loads
class RapidgatorNet(Account):
__name__ = "RapidgatorNet"
- __version__ = "0.03"
+ __version__ = "0.04"
__type__ = "account"
__description__ = """rapidgator.net account plugin"""
__author_name__ = ("zoidberg")
@@ -46,7 +46,7 @@ class RapidgatorNet(Account):
self.scheduleRefresh(user, json['response']['reset_in'])
return {"validuntil": json['response']['expire_date'],
- "trafficleft": json['response']['traffic_left'] / 1024,
+ "trafficleft": int(json['response']['traffic_left']) / 1024,
"premium": True}
else:
self.logError(json['response_details'])
@@ -71,4 +71,4 @@ class RapidgatorNet(Account):
except Exception, e:
self.logError(e)
- self.wrongPassword() \ No newline at end of file
+ self.wrongPassword()