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.py15
1 files changed, 3 insertions, 12 deletions
diff --git a/module/plugins/hooks/ExpertDecoders.py b/module/plugins/hooks/ExpertDecoders.py
index c9f8204c4..04f6d0795 100644
--- a/module/plugins/hooks/ExpertDecoders.py
+++ b/module/plugins/hooks/ExpertDecoders.py
@@ -11,13 +11,13 @@ from module.network.RequestFactory import getURL, getRequest
from module.plugins.Hook import Hook, threaded
-class ExpertDecoders(Hook):
+class ExpertDecoders(Addon):
__name__ = "ExpertDecoders"
__type__ = "hook"
__version__ = "0.04"
__config__ = [("force", "bool", "Force CT even if client is connected", False),
- ("passkey", "password", "Access key", "")]
+ ("passkey", "password", "Access key", "")]
__description__ = """Send captchas to expertdecoders.com"""
__license__ = "GPLv3"
@@ -28,15 +28,6 @@ class ExpertDecoders(Hook):
API_URL = "http://www.fasttypers.org/imagepost.ashx"
- #@TODO: Remove in 0.4.10
- def initPeriodical(self):
- pass
-
-
- def setup(self):
- self.info = {} #@TODO: Remove in 0.4.10
-
-
def getCredits(self):
res = getURL(self.API_URL, post={"key": self.getConfig("passkey"), "action": "balance"})
@@ -74,7 +65,7 @@ class ExpertDecoders(Hook):
task.setResult(result)
- def newCaptchaTask(self, task):
+ def captchaTask(self, task):
if not task.isTextual():
return False