diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-10-11 01:04:09 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-10-11 01:04:09 +0200 |
commit | c3b3f3ea5c813edbe3e6941c535c78ad494244ee (patch) | |
tree | 6a76a01cdf3d5fe678e02618bdbe7d0c5ce8ca8c /module/plugins/hooks/CaptchaBrotherhood.py | |
parent | Fix https://github.com/pyload/pyload/issues/2002 (diff) | |
download | pyload-c3b3f3ea5c813edbe3e6941c535c78ad494244ee.tar.xz |
Fix https://github.com/pyload/pyload/issues/1998
Fix https://github.com/pyload/pyload/issues/1999
Fix https://github.com/pyload/pyload/issues/2001
Diffstat (limited to 'module/plugins/hooks/CaptchaBrotherhood.py')
-rw-r--r-- | module/plugins/hooks/CaptchaBrotherhood.py | 6 |
1 files changed, 3 insertions, 3 deletions
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']) |