From c3b3f3ea5c813edbe3e6941c535c78ad494244ee Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Sun, 11 Oct 2015 01:04:09 +0200 Subject: Fix https://github.com/pyload/pyload/issues/1998 Fix https://github.com/pyload/pyload/issues/1999 Fix https://github.com/pyload/pyload/issues/2001 --- module/plugins/hooks/CaptchaBrotherhood.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'module/plugins/hooks/CaptchaBrotherhood.py') diff --git a/module/plugins/hooks/CaptchaBrotherhood.py b/module/plugins/hooks/CaptchaBrotherhood.py index 642bd23e6..24254ffbb 100644 --- a/module/plugins/hooks/CaptchaBrotherhood.py +++ b/module/plugins/hooks/CaptchaBrotherhood.py @@ -36,7 +36,7 @@ class CaptchaBrotherhoodException(Exception): class CaptchaBrotherhood(Addon): - __name = "CaptchaBrotherhood" + __name__ = "CaptchaBrotherhood" __type__ = "hook" __version__ = "0.10" __status__ = "testing" @@ -146,7 +146,7 @@ class CaptchaBrotherhood(Addon): if self.get_credits() > 10: task.handler.append(self) - task.data['service'] = self.__name__ + task.data['service'] = self.classname task.setWaiting(100) self._process_captcha(task) else: @@ -154,7 +154,7 @@ class CaptchaBrotherhood(Addon): def captcha_invalid(self, task): - if task.data['service'] is self.__name__ and "ticket" in task.data: + if task.data['service'] is self.classname and "ticket" in task.data: res = self.api_response("complainCaptcha", task.data['ticket']) -- cgit v1.2.3