summaryrefslogtreecommitdiff
path: root/searx/plugins
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2015-03-11 01:42:25 +0100
committerAdam Tauber <asciimoo@gmail.com>2015-03-11 01:42:25 +0100
commit9cb66be29c287357e9b7135fe8840aa8b5979972 (patch)
tree43e1610c6e56d345089b809e749bb23a4e50a32c /searx/plugins
parent359dfc5ebb011f8c241fbfa16ec34fcbec844064 (diff)
downloadsearxng-9cb66be29c287357e9b7135fe8840aa8b5979972.tar.gz
searxng-9cb66be29c287357e9b7135fe8840aa8b5979972.zip
[enh] plugin id
Diffstat (limited to 'searx/plugins')
-rw-r--r--searx/plugins/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/searx/plugins/__init__.py b/searx/plugins/__init__.py
index 9c9c52ae4..61ec211e4 100644
--- a/searx/plugins/__init__.py
+++ b/searx/plugins/__init__.py
@@ -29,6 +29,7 @@ class PluginStore():
if not hasattr(plugin, plugin_attr):
logger.critical('missing attribute "{0}", cannot load plugin: {1}'.format(plugin_attr, plugin))
exit(3)
+ plugin.id = plugin.name.replace(' ', '_')
self.plugins.append(plugin)
def call(self, plugin_type, request, *args, **kwargs):