summaryrefslogtreecommitdiffstats
path: root/pyload/plugin/Account.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/plugin/Account.py')
-rw-r--r--pyload/plugin/Account.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/pyload/plugin/Account.py b/pyload/plugin/Account.py
index 6a3eddc5b..23f15e8fd 100644
--- a/pyload/plugin/Account.py
+++ b/pyload/plugin/Account.py
@@ -96,7 +96,7 @@ class Account(Base):
req.cj.clear()
req.close()
if user in self.infos:
- del self.infos[user] #delete old information
+ del self.infos[user] # delete old information
return self._login(user, self.accounts[user])
@@ -112,7 +112,7 @@ class Account(Base):
""" updates account and return true if anything changed """
if user in self.accounts:
- self.accounts[user]['valid'] = True #do not remove or accounts will not login
+ self.accounts[user]['valid'] = True # do not remove or accounts will not login
if password:
self.accounts[user]['password'] = password
self.relogin(user)
@@ -166,8 +166,7 @@ class Account(Base):
infos['timestamp'] = time()
self.infos[name] = infos
- elif "timestamp" in self.infos[name] and self.infos[name][
- "timestamp"] + self.info_threshold * 60 < time():
+ elif "timestamp" in self.infos[name] and self.infos[name]["timestamp"] + self.info_threshold * 60 < time():
self.logDebug("Reached timeout for account data")
self.scheduleRefresh(name)