summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks/ClickAndLoad.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hooks/ClickAndLoad.py')
-rw-r--r--module/plugins/hooks/ClickAndLoad.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/module/plugins/hooks/ClickAndLoad.py b/module/plugins/hooks/ClickAndLoad.py
index 97e5cd57d..94185251f 100644
--- a/module/plugins/hooks/ClickAndLoad.py
+++ b/module/plugins/hooks/ClickAndLoad.py
@@ -23,9 +23,10 @@ import thread
from module.plugins.Hook import Hook
+
class ClickAndLoad(Hook):
__name__ = "ClickAndLoad"
- __version__ = "0.2"
+ __version__ = "0.21"
__description__ = """Gives abillity to use jd's click and load. depends on webinterface"""
__config__ = [("activated", "bool", "Activated", "True"),
("extern", "bool", "Allow external link adding", "False")]
@@ -43,7 +44,7 @@ class ClickAndLoad(Hook):
thread.start_new_thread(proxy, (self, ip, self.port, 9666))
except:
- self.log.error("ClickAndLoad port already in use.")
+ self.logError("ClickAndLoad port already in use.")
def proxy(self, *settings):
@@ -71,7 +72,7 @@ def server(self, *settings):
errno = e.args[0]
if errno == 98:
- self.core.log.warning(_("Click'N'Load: Port 9666 already in use"))
+ self.logWarning(_("Click'N'Load: Port 9666 already in use"))
return
thread.start_new_thread(server, (self,) + settings)
except: