diff options
author | Nitzo <nitzo2001@yahoo.com> | 2016-04-13 21:06:56 +0200 |
---|---|---|
committer | Nitzo <nitzo2001@yahoo.com> | 2016-04-13 21:06:56 +0200 |
commit | 63cf1c5ab887ecf4baf4a84938c5de1e7bd51996 (patch) | |
tree | 6ef67d7282021847e5f10e8d137d231033c96007 | |
parent | [NitroflareCom] Update (diff) | |
download | pyload-63cf1c5ab887ecf4baf4a84938c5de1e7bd51996.tar.xz |
[RapidgatorNet] Fix #2423
-rw-r--r-- | module/plugins/accounts/RapidgatorNet.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/module/plugins/accounts/RapidgatorNet.py b/module/plugins/accounts/RapidgatorNet.py index 013250ae3..701997480 100644 --- a/module/plugins/accounts/RapidgatorNet.py +++ b/module/plugins/accounts/RapidgatorNet.py @@ -9,7 +9,7 @@ from module.plugins.internal.misc import json class RapidgatorNet(Account): __name__ = "RapidgatorNet" __type__ = "account" - __version__ = "0.20" + __version__ = "0.21" __status__ = "testing" __description__ = """Rapidgator.net account plugin""" @@ -68,7 +68,14 @@ 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']) + + if 'reset_in' in json_data['response']: + self.timeout = float(json_data['response']['reset_in']) + self.TUNE_TIMEOUT = False + + else: + self.TUNE_TIMEOUT = True + return else: |