summaryrefslogtreecommitdiffstats
path: root/module/plugins/Hook.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-02-04 17:19:41 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-02-04 17:19:41 +0100
commitacd4dceb711e9148ede208bb67dc37bfaafd612b (patch)
tree8b36d3621da994285331b75061c5efefb4d60be1 /module/plugins/Hook.py
parentoops (diff)
downloadpyload-acd4dceb711e9148ede208bb67dc37bfaafd612b.tar.xz
improved captcha manager
Diffstat (limited to 'module/plugins/Hook.py')
-rw-r--r--module/plugins/Hook.py14
1 files changed, 13 insertions, 1 deletions
diff --git a/module/plugins/Hook.py b/module/plugins/Hook.py
index 1b3c05ba1..4bbf6e33a 100644
--- a/module/plugins/Hook.py
+++ b/module/plugins/Hook.py
@@ -19,7 +19,6 @@
"""
-
class Hook():
__name__ = "Hook"
__version__ = "0.2"
@@ -38,6 +37,9 @@ class Hook():
self.interval = 60
self.setup()
+
+ def __repr__(self):
+ return self.__name__
def setup(self):
""" more init stuff if needed"""
@@ -84,3 +86,13 @@ class Hook():
def unrarFinished(self, folder, fname):
pass
+
+ def newCaptchaTask(self, task):
+ """ new captcha task for the plugin, it MUST set the handler and timeout or will be ignored """
+ pass
+
+ def captchaCorrect(self, task):
+ pass
+
+ def captchaWrong(self, task):
+ pass \ No newline at end of file