summaryrefslogtreecommitdiffstats
path: root/pyload/config/Parser.py
diff options
context:
space:
mode:
authorGravatar Armin <Armin@Armin-PC.diedering.lan> 2015-04-10 14:44:36 +0200
committerGravatar Armin <Armin@Armin-PC.diedering.lan> 2015-04-10 14:44:36 +0200
commitcc07ae19adcb97e9ab9748c7a317ef4b36f73935 (patch)
tree3d2b5a37c18414714f68e721b52ca393dd7e75a9 /pyload/config/Parser.py
parentmore fixes. now running all plugins (diff)
downloadpyload-cc07ae19adcb97e9ab9748c7a317ef4b36f73935.tar.xz
added: configdata of deleted or outdated plugins are deletedfrom config
file
Diffstat (limited to 'pyload/config/Parser.py')
-rw-r--r--pyload/config/Parser.py7
1 files changed, 7 insertions, 0 deletions
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]