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/ExpertDecoders.py | |
| parent | Spare code cosmetics (diff) | |
| download | pyload-0eb6e7ec4a1144dcca824d8add049787d3da1762.tar.xz | |
Two space before function declaration
Diffstat (limited to 'module/plugins/hooks/ExpertDecoders.py')
| -rw-r--r-- | module/plugins/hooks/ExpertDecoders.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/module/plugins/hooks/ExpertDecoders.py b/module/plugins/hooks/ExpertDecoders.py index 712b19677..e786cc35a 100644 --- a/module/plugins/hooks/ExpertDecoders.py +++ b/module/plugins/hooks/ExpertDecoders.py @@ -33,6 +33,7 @@ class ExpertDecoders(Hook): def setup(self): self.info = {} + def getCredits(self): response = getURL(self.API_URL, post={"key": self.getConfig("passkey"), "action": "balance"}) @@ -44,6 +45,7 @@ class ExpertDecoders(Hook): self.logError(response) return 0 + def processCaptcha(self, task): task.data['ticket'] = ticket = uuid4() result = None @@ -65,6 +67,7 @@ class ExpertDecoders(Hook): self.logDebug("Result %s : %s" % (ticket, result)) task.setResult(result) + def newCaptchaTask(self, task): if not task.isTextual(): return False @@ -83,6 +86,7 @@ class ExpertDecoders(Hook): else: self.logInfo(_("Your ExpertDecoders Account has not enough credits")) + def captchaInvalid(self, task): if "ticket" in task.data: |
