summaryrefslogtreecommitdiffstats
path: root/pyload/plugin/Plugin.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/plugin/Plugin.py')
-rw-r--r--pyload/plugin/Plugin.py11
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")])