diff options
| author | 2015-02-16 03:40:45 +0100 | |
|---|---|---|
| committer | 2015-02-16 03:40:45 +0100 | |
| commit | fcead1870013b6a970eca7878a66dbe783c80ea3 (patch) | |
| tree | 9837d3b2cacba2f5d1a4c620b1cd02f26571b454 /pyload/plugin/Captcha.py | |
| parent | Init cosmetics (diff) | |
| download | pyload-fcead1870013b6a970eca7878a66dbe783c80ea3.tar.xz | |
Partially revert acc46fc3497a66a427b795b4a22c6e71d69185a1
Diffstat (limited to 'pyload/plugin/Captcha.py')
| -rw-r--r-- | pyload/plugin/Captcha.py | 18 | 
1 files changed, 9 insertions, 9 deletions
diff --git a/pyload/plugin/Captcha.py b/pyload/plugin/Captcha.py index 1b3f34e33..ace488994 100644 --- a/pyload/plugin/Captcha.py +++ b/pyload/plugin/Captcha.py @@ -6,13 +6,13 @@ from pyload.plugin.Plugin import Plugin  class Captcha(Plugin): -    __name    = "Captcha" -    __type    = "captcha" -    __version = "0.14" +    __name__    = "Captcha" +    __type__    = "captcha" +    __version__ = "0.14" -    __description = """Base captcha service plugin""" -    __license     = "GPLv3" -    __authors     = [("pyLoad Team", "admin@pyload.org")] +    __description__ = """Base captcha service plugin""" +    __license__     = "GPLv3" +    __authors__     = [("pyLoad Team", "admin@pyload.org")]      KEY_PATTERN = None @@ -29,17 +29,17 @@ class Captcha(Plugin):              if hasattr(self.plugin, "html") and self.plugin.html:                  html = self.plugin.html              else: -                errmsg = _("%s html not found") % self.__name +                errmsg = _("%s html not found") % self.__name__                  self.plugin.error(errmsg)                  raise TypeError(errmsg)          m = re.search(self.KEY_PATTERN, html)          if m:              self.key = m.group("KEY") -            self.plugin.logDebug("%s key: %s" % (self.__name, self.key)) +            self.plugin.logDebug("%s key: %s" % (self.__name__, self.key))              return self.key          else: -            self.plugin.logDebug("%s key not found" % self.__name) +            self.plugin.logDebug("%s key not found" % self.__name__)              return None  | 
