summaryrefslogtreecommitdiffstats
path: root/module/plugins
diff options
context:
space:
mode:
authorGravatar stefanos <antispam-github-com@trash-mail.com> 2013-10-07 15:14:46 +0200
committerGravatar Stefano <l.stickell@yahoo.it> 2013-10-07 15:14:46 +0200
commit116dde5cd71e12f9a5dab5275e4802ee95dc1368 (patch)
tree4a2cc06cad951c04fbd2f0f9cbbac0468c35b9d0 /module/plugins
parentChecksum: reverted b2e7352 due to a case sensitive issue (diff)
downloadpyload-116dde5cd71e12f9a5dab5275e4802ee95dc1368.tar.xz
Captcha9kw: new selfsolve option
+ removed unused imports
Diffstat (limited to 'module/plugins')
-rwxr-xr-xmodule/plugins/hooks/Captcha9kw.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/module/plugins/hooks/Captcha9kw.py b/module/plugins/hooks/Captcha9kw.py
index e13f93dec..d6fef549f 100755
--- a/module/plugins/hooks/Captcha9kw.py
+++ b/module/plugins/hooks/Captcha9kw.py
@@ -19,11 +19,9 @@ from __future__ import with_statement
from thread import start_new_thread
from base64 import b64encode
-import cStringIO
-import pycurl
import time
-from module.network.RequestFactory import getURL, getRequest
+from module.network.RequestFactory import getURL
from module.network.HTTPRequest import BadHeader
from module.plugins.Hook import Hook
@@ -31,7 +29,7 @@ from module.plugins.Hook import Hook
class Captcha9kw(Hook):
__name__ = "Captcha9kw"
- __version__ = "0.07"
+ __version__ = "0.08"
__description__ = """send captchas to 9kw.eu"""
__config__ = [("activated", "bool", "Activated", False),
("force", "bool", "Force CT even if client is connected", True),
@@ -39,6 +37,8 @@ class Captcha9kw(Hook):
("confirm", "bool", "Confirm Captcha (Cost +6)", "False"),
("captchaperhour", "int", "Captcha per hour (max. 9999)", "9999"),
("prio", "int", "Prio 1-10 (Cost +1-10)", "0"),
+ ("selfsolve", "bool",
+ "If enabled and you have a 9kw client active only you will get your captcha to solve it", "False"),
("timeout", "int", "Timeout (max. 300)", "220"),
("passkey", "password", "API key", ""), ]
__author_name__ = ("RaNaN")
@@ -80,6 +80,7 @@ class Captcha9kw(Hook):
"confirm": self.getConfig("confirm"),
"captchaperhour": self.getConfig("captchaperhour"),
"maxtimeout": self.getConfig("timeout"),
+ "selfsolve": self.getConfig("selfsolve"),
"pyload": "1",
"source": "pyload",
"base64": "1",