From cc07ae19adcb97e9ab9748c7a317ef4b36f73935 Mon Sep 17 00:00:00 2001 From: Armin Date: Fri, 10 Apr 2015 14:44:36 +0200 Subject: added: configdata of deleted or outdated plugins are deletedfrom config file --- pyload/config/Parser.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'pyload/config/Parser.py') diff --git a/pyload/config/Parser.py b/pyload/config/Parser.py index e21eaba9f..84c08f17c 100644 --- a/pyload/config/Parser.py +++ b/pyload/config/Parser.py @@ -295,6 +295,13 @@ class ConfigParser(object): self.save() + def removeDeletedPlugins(self, plugins): + for name in self.plugin.keys(): + if not name in plugins: + print "delete config " + name + del self.plugin[name] + + def getMetaData(self, section, option): """ get all config data for an option """ return self.config[section][option] -- cgit v1.2.3