diff options
author | Walter Purcaro <vuolter@gmail.com> | 2015-02-16 22:38:45 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2015-02-16 22:38:45 +0100 |
commit | 270c1ee85edcd1e9e10511833b422d93dfca192a (patch) | |
tree | eb846081ba3ec09721879ee237016b26d19c3c2f /pyload/plugin/hook/DeathByCaptcha.py | |
parent | Fix plugins to work on 0.4.10 (diff) | |
download | pyload-270c1ee85edcd1e9e10511833b422d93dfca192a.tar.xz |
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 e0108963b..47101194e 100644 --- a/pyload/plugin/hook/DeathByCaptcha.py +++ b/pyload/plugin/hook/DeathByCaptcha.py @@ -49,17 +49,17 @@ class DeathByCaptchaException(Exception): class DeathByCaptcha(Hook): - __name__ = "DeathByCaptcha" - __type__ = "hook" - __version__ = "0.06" + __name = "DeathByCaptcha" + __type = "hook" + __version = "0.06" - __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(Hook): 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.api_response("captcha/%d/report" % task.data['ticket'], True) |