diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-08-07 13:23:52 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-08-07 13:23:52 +0200 |
commit | d59f4d94c6b627b83269c643703824afb7faab14 (patch) | |
tree | c3e9756164daf58dfdfff69be8624d18d1d50934 /module | |
parent | ... (diff) | |
download | pyload-d59f4d94c6b627b83269c643703824afb7faab14.tar.xz |
Rs fix, timed reconnect, Cli local option + displaying size
Diffstat (limited to 'module')
-rw-r--r-- | module/remote/RequestHandler.py | 2 | ||||
-rw-r--r-- | module/thread_list.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/module/remote/RequestHandler.py b/module/remote/RequestHandler.py index 7fa85abe1..415a8bba7 100644 --- a/module/remote/RequestHandler.py +++ b/module/remote/RequestHandler.py @@ -21,7 +21,7 @@ from RequestObject import RequestObject class RequestHandler: def __init__(self, core): self.core = core - key = hashlib.sha256("pwhere") #core.config['remotepassword'] + key = hashlib.sha256(core.config['remotepassword']) self.bf = Blowfish.new(key.hexdigest(), Blowfish.MODE_ECB) def proceed(self, data): diff --git a/module/thread_list.py b/module/thread_list.py index a359558d7..cf3df9f94 100644 --- a/module/thread_list.py +++ b/module/thread_list.py @@ -121,7 +121,7 @@ class Thread_List(object): def init_reconnect(self): """initialise a reonnect""" - if not self.parent.config['use_reconnect'] or self.reconnecting: + if not self.parent.config['use_reconnect'] or self.reconnecting or not self.parent.is_reconnect_time(): return False if not exists(self.parent.config['reconnect_method']): |