diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-12-10 19:07:53 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-12-10 19:07:53 +0100 |
commit | 2439bc22671dde697817291b721bfddb792a93b4 (patch) | |
tree | dad4615b7f1d664263af6a85392282329aa0b8e0 /pyload/plugins/hook/BypassCaptcha.py | |
parent | Revert plugin directory structure (diff) | |
download | pyload-2439bc22671dde697817291b721bfddb792a93b4.tar.xz |
Fix plugins key attributes
Diffstat (limited to 'pyload/plugins/hook/BypassCaptcha.py')
-rw-r--r-- | pyload/plugins/hook/BypassCaptcha.py | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/pyload/plugins/hook/BypassCaptcha.py b/pyload/plugins/hook/BypassCaptcha.py index 610cfac64..e5c455276 100644 --- a/pyload/plugins/hook/BypassCaptcha.py +++ b/pyload/plugins/hook/BypassCaptcha.py @@ -26,16 +26,16 @@ class BypassCaptchaException(Exception): class BypassCaptcha(Addon): - __name__ = "BypassCaptcha" - __type__ = "hook" - __version__ = "0.05" + __name = "BypassCaptcha" + __type = "hook" + __version = "0.05" - __config__ = [("force", "bool", "Force BC even if client is connected", False), - ("passkey", "password", "Passkey", "")] + __config = [("force", "bool", "Force BC even if client is connected", False), + ("passkey", "password", "Passkey", "")] - __description__ = """Send captchas to BypassCaptcha.com""" - __license__ = "GPLv3" - __authors__ = [("RaNaN", "RaNaN@pyload.org"), + __description = """Send captchas to BypassCaptcha.com""" + __license = "GPLv3" + __authors = [("RaNaN", "RaNaN@pyload.org"), ("Godofdream", "soilfcition@gmail.com"), ("zoidberg", "zoidberg@mujmail.cz")] @@ -104,20 +104,20 @@ class BypassCaptcha(Addon): if self.getCredits() > 0: task.handler.append(self) - task.data['service'] = self.__name__ + task.data['service'] = self.__name task.setWaiting(100) self.processCaptcha(task) else: - self.logInfo(_("Your %s account has not enough credits") % self.__name__) + self.logInfo(_("Your %s account has not enough credits") % self.__name) def captchaCorrect(self, task): - if task.data['service'] == self.__name__ and "ticket" in task.data: + if task.data['service'] == self.__name and "ticket" in task.data: self.respond(task.data['ticket'], True) 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: self.respond(task.data['ticket'], False) |