From c3b3f3ea5c813edbe3e6941c535c78ad494244ee Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Sun, 11 Oct 2015 01:04:09 +0200 Subject: Fix https://github.com/pyload/pyload/issues/1998 Fix https://github.com/pyload/pyload/issues/1999 Fix https://github.com/pyload/pyload/issues/2001 --- module/plugins/internal/XFSCrypter.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'module/plugins/internal/XFSCrypter.py') diff --git a/module/plugins/internal/XFSCrypter.py b/module/plugins/internal/XFSCrypter.py index 88a435178..da9c9cff7 100644 --- a/module/plugins/internal/XFSCrypter.py +++ b/module/plugins/internal/XFSCrypter.py @@ -5,13 +5,14 @@ from module.plugins.internal.SimpleCrypter import SimpleCrypter, create_getInfo class XFSCrypter(SimpleCrypter): - __name = "XFSCrypter" + __name__ = "XFSCrypter" __type__ = "crypter" __version__ = "0.18" __status__ = "testing" __pattern__ = r'^unmatchable$' - __config__ = [("use_premium" , "bool", "Use premium account if available" , True), + __config__ = [("activated" , "bool", "Activated" , True), + ("use_premium" , "bool", "Use premium account if available" , True), ("use_subfolder" , "bool", "Save package to subfolder" , True), ("subfolder_per_package", "bool", "Create a subfolder for each package", True)] @@ -49,7 +50,7 @@ class XFSCrypter(SimpleCrypter): if self.account: account = self.account else: - account_name = self.__name__.rstrip("Folder") + account_name = self.classname.rstrip("Folder") account = self.pyload.accountManager.getAccountPlugin(account_name) if account and hasattr(account, "PLUGIN_DOMAIN") and account.PLUGIN_DOMAIN: -- cgit v1.2.3