diff options
author | Walter Purcaro <vuolter@gmail.com> | 2015-02-16 03:40:45 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2015-02-16 03:40:45 +0100 |
commit | fcead1870013b6a970eca7878a66dbe783c80ea3 (patch) | |
tree | 9837d3b2cacba2f5d1a4c620b1cd02f26571b454 /pyload/plugin/hook/DeathByCaptcha.py | |
parent | Init cosmetics (diff) | |
download | pyload-fcead1870013b6a970eca7878a66dbe783c80ea3.tar.xz |
Partially revert acc46fc3497a66a427b795b4a22c6e71d69185a1
Diffstat (limited to 'pyload/plugin/hook/DeathByCaptcha.py')
-rw-r--r-- | pyload/plugin/hook/DeathByCaptcha.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/pyload/plugin/hook/DeathByCaptcha.py b/pyload/plugin/hook/DeathByCaptcha.py index 92bfa1e70..9460a0cee 100644 --- a/pyload/plugin/hook/DeathByCaptcha.py +++ b/pyload/plugin/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", ""), + __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) |