summaryrefslogtreecommitdiffstats
path: root/pyload/plugin/crypter
diff options
context:
space:
mode:
authorGravatar Armin <Armin@Armin-PC.diedering.lan> 2015-04-16 19:38:27 +0200
committerGravatar Armin <Armin@Armin-PC.diedering.lan> 2015-04-16 19:38:27 +0200
commitd7ced99ef511ce9f0a81e437db2f31fce8717b23 (patch)
tree3df5e579ade317e01da47ded86d98483f0857fcb /pyload/plugin/crypter
parentMerge pull request #1 from vuolter/0.4.10 (diff)
downloadpyload-d7ced99ef511ce9f0a81e437db2f31fce8717b23.tar.xz
fixed: more typos
Diffstat (limited to 'pyload/plugin/crypter')
-rw-r--r--pyload/plugin/crypter/XFileSharingPro.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pyload/plugin/crypter/XFileSharingPro.py b/pyload/plugin/crypter/XFileSharingPro.py
index 9422789f3..c83c0c67e 100644
--- a/pyload/plugin/crypter/XFileSharingPro.py
+++ b/pyload/plugin/crypter/XFileSharingPro.py
@@ -12,7 +12,7 @@ class XFileSharingPro(XFSCrypter):
__pattern = r'^unmatchable$'
__config = [("use_subfolder" , "bool", "Save package to subfolder" , True),
- ("subfolder_per_pack", "bool", "Create a subfolder for each package", True)]
+ ("subfolder_per_pack", "bool", "Create a subfolder for each package", True)]
__description = """XFileSharingPro dummy folder decrypter plugin for hook"""
__license = "GPLv3"
@@ -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.__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.crypterPlugins[self.__name]['pattern']
+ self.__pattern = self.core.pluginManager.crypterPlugins[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 != '.')