diff options
author | 2015-10-11 01:04:09 +0200 | |
---|---|---|
committer | 2015-10-11 01:04:09 +0200 | |
commit | c3b3f3ea5c813edbe3e6941c535c78ad494244ee (patch) | |
tree | 6a76a01cdf3d5fe678e02618bdbe7d0c5ce8ca8c /module/plugins/hooks/DeathByCaptcha.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/DeathByCaptcha.py')
-rw-r--r-- | module/plugins/hooks/DeathByCaptcha.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/hooks/DeathByCaptcha.py b/module/plugins/hooks/DeathByCaptcha.py index c1f33be6d..00d6453a4 100644 --- a/module/plugins/hooks/DeathByCaptcha.py +++ b/module/plugins/hooks/DeathByCaptcha.py @@ -49,7 +49,7 @@ class DeathByCaptchaException(Exception): class DeathByCaptcha(Addon): - __name = "DeathByCaptcha" + __name__ = "DeathByCaptcha" __type__ = "hook" __version__ = "0.08" __status__ = "testing" @@ -187,13 +187,13 @@ class DeathByCaptcha(Addon): if balance > rate: task.handler.append(self) - task.data['service'] = self.__name__ + task.data['service'] = self.classname task.setWaiting(180) self._process_captcha(task) 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: try: res = self.api_response("captcha/%d/report" % task.data['ticket'], True) |