diff options
| author | 2013-03-09 13:03:08 +0100 | |
|---|---|---|
| committer | 2013-03-09 13:03:08 +0100 | |
| commit | 803ae199c53aad8b682b2d0a8e46af786589a1b0 (patch) | |
| tree | 0f320304bb884c6089fd4e976ee62c5797a2f48e /module | |
| parent | EgoFilesCom: added ability to detect offline files (diff) | |
| download | pyload-803ae199c53aad8b682b2d0a8e46af786589a1b0.tar.xz | |
updated 9kw plugin (#27)
Diffstat (limited to 'module')
| -rwxr-xr-x[-rw-r--r--] | module/plugins/hooks/Captcha9kw.py | 13 | 
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 | 
