diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-02-20 23:11:33 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-02-20 23:11:33 +0100 |
commit | 14ecf91716fd403922b44567d75d4cbe3abea617 (patch) | |
tree | 9f101dbedd74b9f19c7c187114ffd6fcab7e19fa /module/api | |
parent | fixed showing files after deletion of package (diff) | |
download | pyload-14ecf91716fd403922b44567d75d4cbe3abea617.tar.xz |
parse category from addons
Diffstat (limited to 'module/api')
-rw-r--r-- | module/api/ConfigApi.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/api/ConfigApi.py b/module/api/ConfigApi.py index fcc0bdd14..55e0aa49b 100644 --- a/module/api/ConfigApi.py +++ b/module/api/ConfigApi.py @@ -68,7 +68,7 @@ class ConfigApi(ApiComponent): for name, config, values in self.core.config.iterSections(self.user): if not values: continue item = ConfigInfo(name, config.name, config.description, - self.core.pluginManager.isPluginType(name, "addons"), + self.core.pluginManager.getCategory(name), self.core.pluginManager.isUserPlugin(name), values.get("activated", False)) data.append(item) @@ -84,7 +84,7 @@ class ConfigApi(ApiComponent): """ # TODO: filter user_context / addons when not allowed return [ConfigInfo(name, config.name, config.description, - self.core.pluginManager.isPluginType(name, "addons"), + self.core.pluginManager.getCategory(name), self.core.pluginManager.isUserPlugin(name)) for name, config, values in self.core.config.iterSections(self.user)] |