From e6f7ba06c3d7ab9708f4960cbf359684155f9a5f Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Fri, 2 Oct 2015 16:45:49 +0200 Subject: Fix https://github.com/pyload/pyload/issues/1911#issuecomment-145026557 --- module/plugins/internal/Account.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'module/plugins/internal/Account.py') diff --git a/module/plugins/internal/Account.py b/module/plugins/internal/Account.py index f1b85f358..724322a4c 100644 --- a/module/plugins/internal/Account.py +++ b/module/plugins/internal/Account.py @@ -94,7 +94,7 @@ class Account(Plugin): except Skip: self.info['login']['valid'] = True if self.auto_timeout: - self.auto_timeout *= 2 + self.auto_timeout *= 3 self.interval = self.auto_timeout except Exception, e: @@ -104,7 +104,7 @@ class Account(Plugin): else: self.info['login']['valid'] = True if self.interval is self.auto_timeout: - self.interval = self.auto_timeout / 2 + self.interval = self.auto_timeout / 3 self.auto_timeout = False finally: @@ -114,11 +114,18 @@ class Account(Plugin): #@TODO: Recheck in 0.4.10 def syncback(self): + """ + Wrapper to directly sync self.info -> self.accounts[self.user] + """ return self.sync(reverse=True) #@TODO: Recheck in 0.4.10 def sync(self, reverse=False): + """ + Sync self.accounts[self.user] -> self.info + or self.info -> self.accounts[self.user] (if reverse is True) + """ if not self.user: return -- cgit v1.2.3