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/DeathByCaptcha.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'module/plugins/hooks/DeathByCaptcha.py') 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) -- cgit v1.2.3