summaryrefslogtreecommitdiffstats
path: root/pyload/plugin/hoster/XFileSharingPro.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-16 21:02:39 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-16 21:02:39 +0200
commitbdb90b74ed973e9d61c9c6fd35d98ffe4c2d4c20 (patch)
tree896ff1eaae9151d83be150735c96a37a61d2d038 /pyload/plugin/hoster/XFileSharingPro.py
parent[api] Improve getConfigValue (diff)
parentfixed: more typos (diff)
downloadpyload-bdb90b74ed973e9d61c9c6fd35d98ffe4c2d4c20.tar.xz
Merge pull request #5 from ardi69/0.4.10
fix: assignJob and typos (__name vs. __name__) [2]
Diffstat (limited to 'pyload/plugin/hoster/XFileSharingPro.py')
-rw-r--r--pyload/plugin/hoster/XFileSharingPro.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pyload/plugin/hoster/XFileSharingPro.py b/pyload/plugin/hoster/XFileSharingPro.py
index 0696674df..8274a818a 100644
--- a/pyload/plugin/hoster/XFileSharingPro.py
+++ b/pyload/plugin/hoster/XFileSharingPro.py
@@ -23,13 +23,13 @@ class XFileSharingPro(XFSHoster):
def _log(self, type, args):
msg = " | ".join(str(a).strip() for a in args if a)
logger = getattr(self.log, type)
- logger("%s: %s: %s" % (self.__name, self.HOSTER_NAME, msg or _("%s MARK" % type.upper())))
+ logger("%s: %s: %s" % (self.__class__.__name__, self.HOSTER_NAME, msg or _("%s MARK" % type.upper())))
def init(self):
super(XFileSharingPro, self).init()
- self.__pattern = self.core.pluginManager.hosterPlugins[self.__name]['pattern']
+ self.__pattern = self.core.pluginManager.hosterPlugins[self.__class__.__name__]['pattern']
self.HOSTER_DOMAIN = re.match(self.__pattern, self.pyfile.url).group("DOMAIN").lower()
self.HOSTER_NAME = "".join(part.capitalize() for part in re.split(r'(\.|\d+)', self.HOSTER_DOMAIN) if part != '.')