summaryrefslogtreecommitdiffstats
path: root/pyload/config
diff options
context:
space:
mode:
authorGravatar Armin <Armin@Armin-PC.diedering.lan> 2015-04-10 16:14:48 +0200
committerGravatar Armin <Armin@Armin-PC.diedering.lan> 2015-04-10 16:14:48 +0200
commit6e700c23a25afe7c2df557165a2caf27b5eece4a (patch)
treee731cdab18a741c46aecdb4944de2600e4148c2c /pyload/config
parentremove testing stuff (diff)
downloadpyload-6e700c23a25afe7c2df557165a2caf27b5eece4a.tar.xz
showing plugins nicer in settings -> "xxx (Addon)" instead "xxx_addon"
Note: required re-create of plugin.conf (by simple deleting of plugin.conf)
Diffstat (limited to 'pyload/config')
-rw-r--r--pyload/config/Parser.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/pyload/config/Parser.py b/pyload/config/Parser.py
index 4c462946e..4c5ee6742 100644
--- a/pyload/config/Parser.py
+++ b/pyload/config/Parser.py
@@ -309,7 +309,13 @@ class ConfigParser(object):
def addPluginConfig(self, name, config, outline=""):
"""adds config options with tuples (name, type, desc, default)"""
if name not in self.plugin:
- conf = {"desc": name,
+ 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,
"outline": outline}
self.plugin[name] = conf
else: