diff options
author | 2015-10-04 04:29:58 +0200 | |
---|---|---|
committer | 2015-10-04 04:29:58 +0200 | |
commit | 1c7d9e55ffbfc9204c9e9246d9cc64806fa38326 (patch) | |
tree | 49fff3f3b5b2c036c99c1422b9d0153a6c80f0cd /module/plugins/hooks/ClickAndLoad.py | |
parent | Fix https://github.com/pyload/pyload/issues/1911#issuecomment-145026557 (diff) | |
download | pyload-1c7d9e55ffbfc9204c9e9246d9cc64806fa38326.tar.xz |
Fixpack (2)
Diffstat (limited to 'module/plugins/hooks/ClickAndLoad.py')
-rw-r--r-- | module/plugins/hooks/ClickAndLoad.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/module/plugins/hooks/ClickAndLoad.py b/module/plugins/hooks/ClickAndLoad.py index 475234689..aef014d1a 100644 --- a/module/plugins/hooks/ClickAndLoad.py +++ b/module/plugins/hooks/ClickAndLoad.py @@ -29,13 +29,13 @@ def forward(source, destination): class ClickAndLoad(Addon): __name__ = "ClickAndLoad" __type__ = "hook" - __version__ = "0.47" + __version__ = "0.48" __status__ = "testing" - __config__ = [("activated", "bool", "Activated" , True ), - ("port" , "int" , "Port" , 9666 ), - ("extern" , "bool", "Listen on the public network interface", True ), - ("queue" , "bool", "Add packages to queue" , False)] + __config__ = [("activated", "bool" , "Activated" , True ), + ("port" , "int" , "Port" , 9666 ), + ("extern" , "bool" , "Listen for external connections", True ), + ("dest" , "queue;collector", "Add packages to" , "collector")] __description__ = """Click'n'Load hook plugin""" __license__ = "GPLv3" @@ -55,7 +55,7 @@ class ClickAndLoad(Addon): @threaded - def forward(source, destination, queue=False): + def forward(self, source, destination, queue=False): if queue: old_ids = set(pack.id for pack in self.pyload.api.getCollector()) @@ -109,7 +109,7 @@ class ClickAndLoad(Addon): server_socket.connect(("127.0.0.1", webport)) - self.forward(client_socket, server_socket, self.get_config('queue')) + self.forward(client_socket, server_socket, self.get_config('dest') is "queue") self.forward(server_socket, client_socket) except socket.timeout: |