summaryrefslogtreecommitdiffstats
path: root/pyload/plugins/hook/DeathByCaptcha.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-10 19:07:53 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-10 19:07:53 +0100
commit2439bc22671dde697817291b721bfddb792a93b4 (patch)
treedad4615b7f1d664263af6a85392282329aa0b8e0 /pyload/plugins/hook/DeathByCaptcha.py
parentRevert plugin directory structure (diff)
downloadpyload-2439bc22671dde697817291b721bfddb792a93b4.tar.xz
Fix plugins key attributes
Diffstat (limited to 'pyload/plugins/hook/DeathByCaptcha.py')
-rw-r--r--pyload/plugins/hook/DeathByCaptcha.py22
1 files changed, 11 insertions, 11 deletions
diff --git a/pyload/plugins/hook/DeathByCaptcha.py b/pyload/plugins/hook/DeathByCaptcha.py
index f2ccb383b..240f9a5ce 100644
--- a/pyload/plugins/hook/DeathByCaptcha.py
+++ b/pyload/plugins/hook/DeathByCaptcha.py
@@ -49,17 +49,17 @@ class DeathByCaptchaException(Exception):
class DeathByCaptcha(Addon):
- __name__ = "DeathByCaptcha"
- __type__ = "hook"
- __version__ = "0.04"
+ __name = "DeathByCaptcha"
+ __type = "hook"
+ __version = "0.04"
- __config__ = [("username", "str", "Username", ""),
- ("passkey", "password", "Password", ""),
- ("force", "bool", "Force DBC even if client is connected", False)]
+ __config = [("username", "str", "Username", ""),
+ ("passkey", "password", "Password", ""),
+ ("force", "bool", "Force DBC even if client is connected", False)]
- __description__ = """Send captchas to DeathByCaptcha.com"""
- __license__ = "GPLv3"
- __authors__ = [("RaNaN", "RaNaN@pyload.org"),
+ __description = """Send captchas to DeathByCaptcha.com"""
+ __license = "GPLv3"
+ __authors = [("RaNaN", "RaNaN@pyload.org"),
("zoidberg", "zoidberg@mujmail.cz")]
@@ -183,13 +183,13 @@ class DeathByCaptcha(Addon):
if balance > rate:
task.handler.append(self)
- task.data['service'] = self.__name__
+ task.data['service'] = self.__name
task.setWaiting(180)
self.processCaptcha(task)
def captchaInvalid(self, task):
- if task.data['service'] == self.__name__ and "ticket" in task.data:
+ if task.data['service'] == self.__name and "ticket" in task.data:
try:
res = self.call_api("captcha/%d/report" % task.data['ticket'], True)