diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-12-01 00:08:11 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-12-01 00:08:11 +0100 |
commit | 95270599f2a0d0042c75f63f30a3e013849439f7 (patch) | |
tree | ced2dc611ed51e43251b980e2a1578fe90674858 /pyload/plugins/addons/ClickAndLoad.py | |
parent | Updated translations (diff) | |
download | pyload-95270599f2a0d0042c75f63f30a3e013849439f7.tar.xz |
fixed are few addons and improved crypter workarounds
Diffstat (limited to 'pyload/plugins/addons/ClickAndLoad.py')
-rw-r--r-- | pyload/plugins/addons/ClickAndLoad.py | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/pyload/plugins/addons/ClickAndLoad.py b/pyload/plugins/addons/ClickAndLoad.py index 0fc78abfe..0d9538543 100644 --- a/pyload/plugins/addons/ClickAndLoad.py +++ b/pyload/plugins/addons/ClickAndLoad.py @@ -21,10 +21,9 @@ import socket import thread -from module.plugins.Hook import Hook +from pyload.plugins.Addon import Addon - -class ClickAndLoad(Hook): +class ClickAndLoad(Addon): __name__ = "ClickAndLoad" __version__ = "0.22" __description__ = """Gives abillity to use jd's click and load. depends on webinterface""" @@ -36,15 +35,12 @@ class ClickAndLoad(Hook): def coreReady(self): self.port = int(self.config['webinterface']['port']) if self.config['webinterface']['activated']: - try: - if self.getConfig("extern"): - ip = "0.0.0.0" - else: - ip = "127.0.0.1" + if self.getConfig("extern"): + ip = "0.0.0.0" + else: + ip = "127.0.0.1" - thread.start_new_thread(proxy, (self, ip, self.port, 9666)) - except: - self.logError("ClickAndLoad port already in use.") + thread.start_new_thread(proxy, (self, ip, self.port, 9666)) def proxy(self, *settings): |