summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar GammaC0de <nitzo2001@yahoo.com> 2016-04-12 00:36:45 +0200
committerGravatar GammaC0de <nitzo2001@yahoo.com> 2016-04-12 00:36:45 +0200
commit0c10deaa7805c12f62052d7701694dfd5d5c4dc2 (patch)
tree6935585fff26949b2d2f083e4bd6ad69ce1918fc
parent[NitroflareCom] fix #2421 (diff)
downloadpyload-0c10deaa7805c12f62052d7701694dfd5d5c4dc2.tar.xz
[RapidgatorNet] fix #2419
-rw-r--r--module/plugins/accounts/RapidgatorNet.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/module/plugins/accounts/RapidgatorNet.py b/module/plugins/accounts/RapidgatorNet.py
index 6ee13f37c..013250ae3 100644
--- a/module/plugins/accounts/RapidgatorNet.py
+++ b/module/plugins/accounts/RapidgatorNet.py
@@ -9,14 +9,17 @@ from module.plugins.internal.misc import json
class RapidgatorNet(Account):
__name__ = "RapidgatorNet"
__type__ = "account"
- __version__ = "0.19"
+ __version__ = "0.20"
__status__ = "testing"
__description__ = """Rapidgator.net account plugin"""
__license__ = "GPLv3"
- __authors__ = [("zoidberg", "zoidberg@mujmail.cz")]
+ __authors__ = [("zoidberg", "zoidberg@mujmail.cz" ),
+ ("GammaC0de", "nitzo2001[AT]yahoo[DOT]com")]
+ TUNE_TIMEOUT = False
+
API_URL = "http://rapidgator.net/api/user/"
@@ -37,12 +40,10 @@ class RapidgatorNet(Account):
json_data = json.loads(html)
if json_data['response_status'] == 200:
- if "reset_in" in json_data['response']:
- self._schedule_refresh(user, json_data['response']['reset_in'])
-
validuntil = json_data['response']['expire_date']
trafficleft = float(json_data['response']['traffic_left']) / 1024 #@TODO: Remove `/ 1024` in 0.4.10
premium = True
+
else:
self.log_error(json_data['response_details'])
@@ -67,7 +68,9 @@ class RapidgatorNet(Account):
if json_data['response_status'] == 200:
data['sid'] = str(json_data['response']['session_id'])
+ self.timeout = float(json_data['response']['reset_in'])
return
+
else:
self.log_error(json_data['response_details'])