SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.
Python bingbravedegoogleduckduckgogooglemetasearchprivacypythonqwantsearchsearch-enginesearxsearxngstartpageyahoo
Change self plugin to self_info + change self_info description
Luc Didry0fe362bacf60
diff --git a/searx/plugins/__init__.py b/searx/plugins/__init__.pyindex bc4a0fba3..411f9cd1d 100644--- a/searx/plugins/__init__.py+++ b/searx/plugins/__init__.py@@ -20,7 +20,7 @@ from searx import loggerlogger = logger.getChild('plugins')from searx.plugins import (https_rewrite,- self,+ self_info,search_on_category_select)required_attrs = (('name', str),@@ -71,5 +71,5 @@ class PluginStore():plugins = PluginStore()plugins.register(https_rewrite)-plugins.register(self)+plugins.register(self_info)plugins.register(search_on_category_select)diff --git a/searx/plugins/self.py b/searx/plugins/self_info.pysimilarity index 92%rename from searx/plugins/self.pyrename to searx/plugins/self_info.pyindex e3bb517d8..5ca994526 100644--- a/searx/plugins/self.py+++ b/searx/plugins/self_info.py@@ -17,7 +17,7 @@ along with searx. If not, see < http://www.gnu.org/licenses/ >.from flask.ext.babel import gettextimport rename = "Self Informations"-description = gettext('Correct Duckduckgo instant answers with your own informations (IP and User Agent)')+description = gettext('Displays your IP if the query is "ip" and your user agent if the query contains "user agent".')default_on = Truediff --git a/searx/tests/test_plugins.py b/searx/tests/test_plugins.pyindex 15bcab475..c5171127c 100644--- a/searx/tests/test_plugins.py+++ b/searx/tests/test_plugins.py@@ -38,7 +38,7 @@ class SelfIPTest(SearxTestCase):def test_PluginStore_init(self):store = plugins.PluginStore()- store.register(plugins.self)+ store.register(plugins.self_info)self.assertTrue(len(store.plugins) == 1)