summaryrefslogtreecommitdiffstats
path: root/pyload/plugins/hook/BypassCaptcha.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/BypassCaptcha.py
parentRevert plugin directory structure (diff)
downloadpyload-2439bc22671dde697817291b721bfddb792a93b4.tar.xz
Fix plugins key attributes
Diffstat (limited to 'pyload/plugins/hook/BypassCaptcha.py')
-rw-r--r--pyload/plugins/hook/BypassCaptcha.py24
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)