diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-04-20 23:07:42 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-04-20 23:07:42 +0200 |
commit | 2475ddb7654d0d6fb1be18082b5c8c480befdbb3 (patch) | |
tree | b82a8b5fc0a309f69733b0a004284f4ef45833d8 /pyload/plugin/crypter | |
parent | Spare code cosmetics (9) (diff) | |
parent | added check of classname == filename (diff) | |
download | pyload-2475ddb7654d0d6fb1be18082b5c8c480befdbb3.tar.xz |
Merge branch 'pr/n10_ardi69' into 0.4.10
Conflicts:
pyload/plugin/hoster/FileserveCom.py
Diffstat (limited to 'pyload/plugin/crypter')
-rw-r--r-- | pyload/plugin/crypter/XFileSharingPro.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pyload/plugin/crypter/XFileSharingPro.py b/pyload/plugin/crypter/XFileSharingPro.py index c83c0c67e..b78d83262 100644 --- a/pyload/plugin/crypter/XFileSharingPro.py +++ b/pyload/plugin/crypter/XFileSharingPro.py @@ -22,13 +22,13 @@ class XFileSharingPro(XFSCrypter): 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.__class__.__name__, self.HOSTER_NAME, msg or _("%s MARK" % type.upper()))) + logger("%s: %s: %s" % (self.getClassName(), self.HOSTER_NAME, msg or _("%s MARK" % type.upper()))) def init(self): super(XFileSharingPro, self).init() - self.__pattern = self.core.pluginManager.crypterPlugins[self.__class__.__name__]['pattern'] + self.__pattern = self.core.pluginManager.crypterPlugins[self.getClassName()]['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 != '.') |