summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks/ClickNLoad.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2016-01-02 16:01:56 +0100
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2016-01-02 16:01:56 +0100
commit6c75c0363f496df86e9c744a9a946f86f82715fa (patch)
tree53e5b7f906e2b9fb1d853d2b0599be7a8c5c7a3d /module/plugins/hooks/ClickNLoad.py
parentTimeout for http request set to 1 minute + report effective url address in he... (diff)
downloadpyload-6c75c0363f496df86e9c744a9a946f86f82715fa.tar.xz
Spare code cosmetics
Diffstat (limited to 'module/plugins/hooks/ClickNLoad.py')
-rw-r--r--module/plugins/hooks/ClickNLoad.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/module/plugins/hooks/ClickNLoad.py b/module/plugins/hooks/ClickNLoad.py
index 4ac6b507f..ac47d8a68 100644
--- a/module/plugins/hooks/ClickNLoad.py
+++ b/module/plugins/hooks/ClickNLoad.py
@@ -32,14 +32,14 @@ class ClickNLoad(Addon):
def activate(self):
- if not self.pyload.config.get("webinterface", "activated"):
+ if not self.pyload.config.get('webinterface', 'activated'):
return
cnlip = "" if self.config.get('extern') else "127.0.0.1"
cnlport = self.config.get('port')
- webip = "127.0.0.1" if any(_ip == self.pyload.config.get("webinterface", "host") for _ip in ("0.0.0.0", "")) \
- else self.pyload.config.get("webinterface", "host")
- webport = self.pyload.config.get("webinterface", "port")
+ webip = "127.0.0.1" if any(_ip == self.pyload.config.get('webinterface', 'host') for _ip in ("0.0.0.0", "")) \
+ else self.pyload.config.get('webinterface', 'host')
+ webport = self.pyload.config.get('webinterface', 'port')
self.pyload.scheduler.addJob(5, self.proxy, [cnlip, cnlport, webip, webport], threaded=False)
@@ -77,7 +77,7 @@ class ClickNLoad(Addon):
server_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
- if self.pyload.config.get("webinterface", "https"):
+ if self.pyload.config.get('webinterface', 'https'):
try:
server_socket = ssl.wrap_socket(server_socket)