From d60040cdc406b0541f0b3f9681a09894f845ba2b Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Mon, 13 Apr 2015 10:29:55 +0200 Subject: Revert 486adc1874e463b1563ad2394b216faff388b10d --- pyload/plugin/hook/BypassCaptcha.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'pyload/plugin/hook/BypassCaptcha.py') diff --git a/pyload/plugin/hook/BypassCaptcha.py b/pyload/plugin/hook/BypassCaptcha.py index 4579d17c5..141ac7282 100644 --- a/pyload/plugin/hook/BypassCaptcha.py +++ b/pyload/plugin/hook/BypassCaptcha.py @@ -26,16 +26,16 @@ class BypassCaptchaException(Exception): class BypassCaptcha(Hook): - __name__ = "BypassCaptcha" - __type__ = "hook" - __version__ = "0.06" + __name = "BypassCaptcha" + __type = "hook" + __version = "0.06" - __config__ = [("force", "bool", "Force BC even if client is connected", False), + __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,21 +104,21 @@ class BypassCaptcha(Hook): 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) -- cgit v1.2.3