From acd4dceb711e9148ede208bb67dc37bfaafd612b Mon Sep 17 00:00:00 2001 From: RaNaN Date: Fri, 4 Feb 2011 17:19:41 +0100 Subject: improved captcha manager --- module/plugins/Hook.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'module/plugins/Hook.py') 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 -- cgit v1.2.3