diff --git a/deluge/ui/web/json_api.py b/deluge/ui/web/json_api.py index d2f438bc5..363045713 100644 --- a/deluge/ui/web/json_api.py +++ b/deluge/ui/web/json_api.py @@ -781,6 +781,13 @@ class WebApi(JSONComponent): config[key] = config[key].encode("utf8") web_config[key] = config[key] + @export + def get_plugins(self): + return { + "enabled_plugins": component.get("Web.PluginManager").plugins.keys(), + "available_plugins": component.get("Web.PluginManager").available_plugins + } + @export def get_plugin_info(self, name): return component.get("Web.PluginManager").get_plugin_info(name)