From 63cf1c5ab887ecf4baf4a84938c5de1e7bd51996 Mon Sep 17 00:00:00 2001 From: Nitzo Date: Wed, 13 Apr 2016 22:06:56 +0300 Subject: [RapidgatorNet] Fix #2423 --- module/plugins/accounts/RapidgatorNet.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'module/plugins/accounts') 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: -- cgit v1.2.3