diff options
author | Stefano <l.stickell@yahoo.it> | 2013-04-26 16:29:33 +0200 |
---|---|---|
committer | Stefano <l.stickell@yahoo.it> | 2013-04-26 16:29:33 +0200 |
commit | 726370725997433a816720b9078a102a6a3dc26e (patch) | |
tree | 34b14c82578a5a93fce20e7f909cf69c2c20b643 | |
parent | UploadedTo: sometimes API returns "can't find request". (diff) | |
download | pyload-726370725997433a816720b9078a102a6a3dc26e.tar.xz |
RapidgatorNet: convert unicode to integer
http://forum.pyload.org/viewtopic.php?f=10&t=2466
-rw-r--r-- | module/plugins/accounts/RapidgatorNet.py | 6 |
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() |