diff options
author | Armin <Armin@Armin-PC.diedering.lan> | 2015-04-13 23:39:24 +0200 |
---|---|---|
committer | Armin <Armin@Armin-PC.diedering.lan> | 2015-04-13 23:39:24 +0200 |
commit | 93e8d96a612249bc5f6985740335306969b1a6d3 (patch) | |
tree | f89a3b6038344aad70a8abdd178af6af89c9a5a3 /pyload/plugin/Plugin.py | |
parent | Cleanup (2) (diff) | |
download | pyload-93e8d96a612249bc5f6985740335306969b1a6d3.tar.xz |
fix: assignJob
fix: typos __name vs. __name__
Diffstat (limited to 'pyload/plugin/Plugin.py')
-rw-r--r-- | pyload/plugin/Plugin.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/pyload/plugin/Plugin.py b/pyload/plugin/Plugin.py index cedab3b4f..9e5f1e55b 100644 --- a/pyload/plugin/Plugin.py +++ b/pyload/plugin/Plugin.py @@ -89,10 +89,15 @@ class Base(object): return self._log("critical", args) - def grtPluginType(self): + def getPluginType(self): return getattr(self, "_%s__type" % self.__class__.__name__) + @classmethod + def getClassName(cls): + return cls.__name__ + + def getPluginConfSection(self): return "%s_%s" % (self.__class__.__name__, getattr(self, "_%s__type" % self.__class__.__name__)) @@ -239,7 +244,7 @@ class Plugin(Base): #: captcha task self.cTask = None - self.html = None #@TODO: Move to hoster class in 0.4.10 + self.html = None # @TODO: Move to hoster class in 0.4.10 self.retries = 0 self.init() @@ -533,7 +538,7 @@ class Plugin(Base): if not url: self.fail(_("No url given")) - url = urllib.unquote(encode(url).strip()) #@NOTE: utf8 vs decode -> please use decode attribute in all future plugins + url = urllib.unquote(encode(url).strip()) # @NOTE: utf8 vs decode -> please use decode attribute in all future plugins if self.core.debug: self.logDebug("Load url: " + url, *["%s=%s" % (key, val) for key, val in locals().iteritems() if key not in ("self", "url")]) |