diff options
| author | 2015-10-10 17:49:14 +0200 | |
|---|---|---|
| committer | 2015-10-10 17:49:14 +0200 | |
| commit | 8e15c1af88b61cebda68a3b40352bf388c2010c7 (patch) | |
| tree | bd1fb40094d907ccad41b4770f947cf9cac020cf /module/plugins/hooks/BypassCaptcha.py | |
| parent | Merge branch 'pr/n1997_GammaC0de' into stable (diff) | |
| download | pyload-8e15c1af88b61cebda68a3b40352bf388c2010c7.tar.xz | |
Spare code cosmetics (3)
Diffstat (limited to 'module/plugins/hooks/BypassCaptcha.py')
| -rw-r--r-- | module/plugins/hooks/BypassCaptcha.py | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/module/plugins/hooks/BypassCaptcha.py b/module/plugins/hooks/BypassCaptcha.py index a5e424532..2e1831860 100644 --- a/module/plugins/hooks/BypassCaptcha.py +++ b/module/plugins/hooks/BypassCaptcha.py @@ -4,7 +4,7 @@ import pycurl  from module.network.HTTPRequest import BadHeader  from module.network.RequestFactory import getRequest as get_request -from module.plugins.internal.Hook import Hook, threaded +from module.plugins.internal.Addon import Addon, threaded  class BypassCaptchaException(Exception): @@ -25,8 +25,8 @@ class BypassCaptchaException(Exception):          return "<BypassCaptchaException %s>" % self.err -class BypassCaptcha(Hook): -    __name__    = "BypassCaptcha" +class BypassCaptcha(Addon): +    __name      = "BypassCaptcha"      __type__    = "hook"      __version__ = "0.08"      __status__  = "testing" @@ -111,7 +111,7 @@ class BypassCaptcha(Hook):              self._process_captcha(task)          else: -            self.log_info(_("Your %s account has not enough credits") % self.__name__) +            self.log_info(_("Your account has not enough credits"))      def captcha_correct(self, task): | 
