diff options
| author | 2015-04-10 14:44:36 +0200 | |
|---|---|---|
| committer | 2015-04-10 14:44:36 +0200 | |
| commit | cc07ae19adcb97e9ab9748c7a317ef4b36f73935 (patch) | |
| tree | 3d2b5a37c18414714f68e721b52ca393dd7e75a9 /pyload/manager | |
| parent | more fixes. now running all plugins (diff) | |
| download | pyload-cc07ae19adcb97e9ab9748c7a317ef4b36f73935.tar.xz | |
added: configdata of deleted or outdated plugins are deletedfrom config
file
Diffstat (limited to 'pyload/manager')
| -rw-r--r-- | pyload/manager/Plugin.py | 5 | 
1 files changed, 5 insertions, 0 deletions
| diff --git a/pyload/manager/Plugin.py b/pyload/manager/Plugin.py index f1899c0a0..222ed9c93 100644 --- a/pyload/manager/Plugin.py +++ b/pyload/manager/Plugin.py @@ -55,10 +55,15 @@ class PluginManager(object):          sys.path.append(abspath(""))          self.loadTypes() +         +        configs = []          for type in self.TYPES:              self.plugins[type] = self.parse(type)              setattr(self, "%sPlugins" % type, self.plugins[type]) +            configs.extend("%s_%s" % (p, type) for p in self.plugins[type]) + +        self.core.config.removeDeletedPlugins(configs)          self.core.log.debug("Created index of plugins") | 
