diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-11-14 14:08:38 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-11-14 14:08:38 +0100 |
commit | ed3b4cd5e100b5df44b45c55a00d49b208cb0a11 (patch) | |
tree | 5f1a9ea5ae0cc7507413aeb707a92c277ada7e65 /module/PluginManager.py | |
parent | prevent more than one pyload instance, -q, --quit option (diff) | |
download | pyload-ed3b4cd5e100b5df44b45c55a00d49b208cb0a11.tar.xz |
LinkList fix, update fix, crypter fix
Diffstat (limited to 'module/PluginManager.py')
-rw-r--r-- | module/PluginManager.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/module/PluginManager.py b/module/PluginManager.py index e7a00a835..3f11c067b 100644 --- a/module/PluginManager.py +++ b/module/PluginManager.py @@ -36,6 +36,10 @@ try: except ImportError: # python 2.5 from module.SafeEval import safe_eval as literal_eval + +IGNORE = ["FreakshareNet"] +#ignore this plugins in homefolder, add deleted plugins here + class PluginManager(): def __init__(self, core): self.core = core @@ -83,7 +87,7 @@ class PluginManager(): self.captchaPlugins = self.parse(_("Captcha"), "captcha") self.accountPlugins = self.parse(_("Account"), "accounts", create=True) self.hookPlugins = self.parse(_("Hook"), "hooks") - + self.log.debug(_("created index of plugins")) def parse(self, typ, folder, create=False, pattern=False, home={}): @@ -142,6 +146,9 @@ class PluginManager(): module = f.replace(".pyc","").replace(".py","") if home: + if name in IGNORE: + del plugins[name] + continue path = "userplugins.%s.%s" % (folder, module) else: path = "module.plugins.%s.%s" % (folder, module) |