summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks/ExpertDecoders.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hooks/ExpertDecoders.py')
-rw-r--r--module/plugins/hooks/ExpertDecoders.py4
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: