diff options
| author | 2014-10-22 19:44:59 +0200 | |
|---|---|---|
| committer | 2014-10-22 19:47:17 +0200 | |
| commit | 0eb6e7ec4a1144dcca824d8add049787d3da1762 (patch) | |
| tree | d653f5fe28bb247a3c4fadeca9bf6278d744f929 /module/plugins/hooks/Captcha9kw.py | |
| parent | Spare code cosmetics (diff) | |
| download | pyload-0eb6e7ec4a1144dcca824d8add049787d3da1762.tar.xz | |
Two space before function declaration
Diffstat (limited to 'module/plugins/hooks/Captcha9kw.py')
| -rwxr-xr-x | module/plugins/hooks/Captcha9kw.py | 5 | 
1 files changed, 5 insertions, 0 deletions
diff --git a/module/plugins/hooks/Captcha9kw.py b/module/plugins/hooks/Captcha9kw.py index 6485db22b..947aff121 100755 --- a/module/plugins/hooks/Captcha9kw.py +++ b/module/plugins/hooks/Captcha9kw.py @@ -41,6 +41,7 @@ class Captcha9kw(Hook):          self.API_URL = "https" + self.API_URL if self.getConfig("https") else "http" + self.API_URL          self.info = {} +      def getCredits(self):          response = getURL(self.API_URL, get={"apikey": self.getConfig("passkey"), "pyload": "1", "source": "pyload",                                               "action": "usercaptchaguthaben"}) @@ -53,6 +54,7 @@ class Captcha9kw(Hook):              self.logError(response)              return 0 +      def processCaptcha(self, task):          result = None @@ -100,6 +102,7 @@ class Captcha9kw(Hook):              self.logError(_("Bad upload"), response)              return False +      def newCaptchaTask(self, task):          if not task.isTextual() and not task.isPositional():              return False @@ -118,6 +121,7 @@ class Captcha9kw(Hook):          else:              self.logError(_("Your Captcha 9kw.eu Account has not enough credits")) +      def captchaCorrect(self, task):          if "ticket" in task.data: @@ -137,6 +141,7 @@ class Captcha9kw(Hook):          else:              self.logError(_("No CaptchaID for correct request (task %s) found.") % task) +      def captchaInvalid(self, task):          if "ticket" in task.data:  | 
