From 6915dcdf8175c8cd903338eae2d40ffb44286f70 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Sun, 11 Oct 2015 17:55:35 +0200 Subject: Spare fixes --- module/plugins/internal/XFSAccount.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'module/plugins/internal/XFSAccount.py') diff --git a/module/plugins/internal/XFSAccount.py b/module/plugins/internal/XFSAccount.py index 5a6f0ee9c..e3290b5bb 100644 --- a/module/plugins/internal/XFSAccount.py +++ b/module/plugins/internal/XFSAccount.py @@ -12,7 +12,7 @@ from module.plugins.internal.Plugin import parse_html_form, parse_time, set_cook class XFSAccount(Account): __name__ = "XFSAccount" __type__ = "account" - __version__ = "0.52" + __version__ = "0.53" __status__ = "testing" __description__ = """XFileSharing account plugin""" @@ -207,7 +207,10 @@ class XFSAccount(Account): finally: errmsg = re.sub(r'<.*?>', " ", errmsg.strip()) - self.timeout = parse_time(errmsg) + new_timeout = parse_time(errmsg) + if new_timeout > self.timeout: + self.timeout = new_timeout + self.fail_login(errmsg) m = re.search(self.LOGIN_FAIL_PATTERN, self.html) -- cgit v1.2.3