summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal/XFSAccount.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-11 17:55:35 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-13 13:38:12 +0200
commit6915dcdf8175c8cd903338eae2d40ffb44286f70 (patch)
tree340f2c60512d016297ed47d632672819f7b78026 /module/plugins/internal/XFSAccount.py
parentFixing fixurl... (diff)
downloadpyload-6915dcdf8175c8cd903338eae2d40ffb44286f70.tar.xz
Spare fixes
Diffstat (limited to 'module/plugins/internal/XFSAccount.py')
-rw-r--r--module/plugins/internal/XFSAccount.py7
1 files changed, 5 insertions, 2 deletions
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)