From 93e8d96a612249bc5f6985740335306969b1a6d3 Mon Sep 17 00:00:00 2001
From: Armin <Armin@Armin-PC.diedering.lan>
Date: Mon, 13 Apr 2015 23:39:24 +0200
Subject: fix: assignJob fix: typos __name vs. __name__

---
 pyload/plugin/Plugin.py | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

(limited to 'pyload/plugin/Plugin.py')

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")])
-- 
cgit v1.2.3