diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-10-13 15:25:32 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-10-13 15:25:32 +0200 |
commit | 43460c40d00819535dfeecfdb80f8a608f2190fd (patch) | |
tree | 351518d8db3e5ee12689af4e019d5c3fc90bd212 /module/ConfigParser.py | |
parent | patches from #392 (diff) | |
download | pyload-43460c40d00819535dfeecfdb80f8a608f2190fd.tar.xz |
improvement for hook plugins, new internal plugin type
Diffstat (limited to 'module/ConfigParser.py')
-rw-r--r-- | module/ConfigParser.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/module/ConfigParser.py b/module/ConfigParser.py index e0d6af7ee..bcf5bcd2a 100644 --- a/module/ConfigParser.py +++ b/module/ConfigParser.py @@ -9,8 +9,8 @@ from shutil import copy from traceback import print_exc from utils import chmod -IGNORE = ("FreakshareNet", "SpeedManager") -#ignore this plugin configs +IGNORE = ("FreakshareNet", "SpeedManager", "ArchiveTo", "ShareCx") +# ignore these plugin configs, mainly because plugins were wiped out CONF_VERSION = 1 @@ -332,6 +332,7 @@ class ConfigParser: for item in config: if item[0] in conf: conf[item[0]]["type"] = item[1] + conf[item[0]]["desc"] = item[2] else: conf[item[0]] = { "desc": item[2], @@ -345,6 +346,12 @@ class ConfigParser: if item not in values: del conf[item] + def deleteConfig(self, name): + """Removes a plugin config""" + if name in self.plugin: + del self.plugin[name] + + def deleteOldPlugins(self): """ remove old plugins from config """ |