diff options
author | 2015-06-17 18:29:50 +0200 | |
---|---|---|
committer | 2015-06-24 22:42:29 +0200 | |
commit | 164512b6a74c94a731fcee7435dce1ccfa2f71e7 (patch) | |
tree | 3f61d3b83f641070145b478f54522c4fe2e63691 /module/plugins/hooks/ClickAndLoad.py | |
parent | Spare fixes (diff) | |
download | pyload-164512b6a74c94a731fcee7435dce1ccfa2f71e7.tar.xz |
Spare code cosmetics
Diffstat (limited to 'module/plugins/hooks/ClickAndLoad.py')
-rw-r--r-- | module/plugins/hooks/ClickAndLoad.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/hooks/ClickAndLoad.py b/module/plugins/hooks/ClickAndLoad.py index 81a446ef3..f7431ebac 100644 --- a/module/plugins/hooks/ClickAndLoad.py +++ b/module/plugins/hooks/ClickAndLoad.py @@ -49,11 +49,11 @@ class ClickAndLoad(Hook): def activate(self): - if not self.core.config['webinterface']['activated']: + if not self.core.config.get("webinterface", "activated"): return ip = "" if self.getConfig('extern') else "127.0.0.1" - webport = self.core.config['webinterface']['port'] + webport = self.core.config.get("webinterface", "port") cnlport = self.getConfig('port') self.proxy(ip, webport, cnlport) @@ -85,7 +85,7 @@ class ClickAndLoad(Hook): server_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) - if self.core.config['webinterface']['https']: + if self.core.config.get("webinterface", "https"): try: server_socket = ssl.wrap_socket(server_socket) |