diff options
Diffstat (limited to 'module/plugins/accounts/RapidgatorNet.py')
-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: |