summaryrefslogtreecommitdiffstats
path: root/module/plugins
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-03-09 13:03:08 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-03-09 13:03:08 +0100
commit803ae199c53aad8b682b2d0a8e46af786589a1b0 (patch)
tree0f320304bb884c6089fd4e976ee62c5797a2f48e /module/plugins
parentEgoFilesCom: added ability to detect offline files (diff)
downloadpyload-803ae199c53aad8b682b2d0a8e46af786589a1b0.tar.xz
updated 9kw plugin (#27)
Diffstat (limited to 'module/plugins')
-rwxr-xr-x[-rw-r--r--]module/plugins/hooks/Captcha9kw.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/module/plugins/hooks/Captcha9kw.py b/module/plugins/hooks/Captcha9kw.py
index dc223ae1e..b34ffeb05 100644..100755
--- a/module/plugins/hooks/Captcha9kw.py
+++ b/module/plugins/hooks/Captcha9kw.py
@@ -32,8 +32,8 @@ class Captcha9kw(Hook):
__name__ = "Captcha9kw"
__version__ = "0.03"
__description__ = """send captchas to 9kw.eu"""
- __config__ = [("activated", "bool", "Activated", False),
- ("force", "bool", "Force CT even if client is connected", False),
+ __config__ = [("activated", "bool", "Activated", True),
+ ("force", "bool", "Force CT even if client is connected", True),
("passkey", "password", "API key", ""),]
__author_name__ = ("RaNaN")
__author_mail__ = ("RaNaN@pyload.org")
@@ -61,12 +61,17 @@ class Captcha9kw(Hook):
data = f.read()
data = b64encode(data)
self.logDebug("%s : %s" % (task.captchaFile, data))
+ if task.isPositional():
+ mouse = 1
+ else:
+ mouse = 0
response = getURL(self.API_URL, post = {
"apikey": self.getConfig("passkey"),
"pyload": "1",
"source": "pyload",
"base64": "1",
+ "mouse": mouse,
"file-upload-01": data,
"action": "usercaptchaupload" })
@@ -90,7 +95,7 @@ class Captcha9kw(Hook):
return False
def newCaptchaTask(self, task):
- if not task.isTextual():
+ if not task.isTextual() and not task.isPositional():
return False
if not self.getConfig("passkey"):
@@ -145,4 +150,4 @@ class Captcha9kw(Hook):
except BadHeader, e:
self.logError("Could not send refund request.", str(e))
else:
- self.logError("No CaptchaID for not correct request (task %s) found." % task)
+ self.logError("No CaptchaID for not correct request (task %s) found." % task) \ No newline at end of file