summaryrefslogtreecommitdiffstats
path: root/pyload/config
diff options
context:
space:
mode:
authorGravatar Armin <Armin@Armin-PC.diedering.lan> 2015-04-10 19:40:33 +0200
committerGravatar Armin <Armin@Armin-PC.diedering.lan> 2015-04-10 19:40:33 +0200
commit0b040f33c65acb50a1e1cc0970365237e7e4ee69 (patch)
treeaebb4cf7abae23861cb45bf543ef269c1857b50e /pyload/config
parentshowing plugins nicer in settings -> "xxx (Addon)" instead "xxx_addon" (diff)
downloadpyload-0b040f33c65acb50a1e1cc0970365237e7e4ee69.tar.xz
moved the config-nicer from config-parser to webui-app
recreateing of plugin.conf no more needed
Diffstat (limited to 'pyload/config')
-rw-r--r--pyload/config/Parser.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/pyload/config/Parser.py b/pyload/config/Parser.py
index 4c5ee6742..4c462946e 100644
--- a/pyload/config/Parser.py
+++ b/pyload/config/Parser.py
@@ -309,13 +309,7 @@ class ConfigParser(object):
def addPluginConfig(self, name, config, outline=""):
"""adds config options with tuples (name, type, desc, default)"""
if name not in self.plugin:
- for search, repl in ( ('_account', ' (Account)'), ('_addon', ' (Addon)'), ('_container', ''), ('_crypter', ' (Crypter)'), ('_extractor', ''), ('_hook', ' (Hook)'), ('_hoster', ' (Hoster)')):
- if name.endswith(search):
- desc = name.replace(search, repl)
- break
- else:
- desc = name
- conf = {"desc": desc,
+ conf = {"desc": name,
"outline": outline}
self.plugin[name] = conf
else: