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
Add language support Allow the user to select a language. It must be written in english, and capitalized, ie : English, French, German, Hungarian...
Cqoicebordel10e4f6f31631
diff --git a/searx/engines/subtitleseeker.py b/searx/engines/subtitleseeker.pyindex 346298300..48790a35c 100644--- a/searx/engines/subtitleseeker.py+++ b/searx/engines/subtitleseeker.py@@ -15,6 +15,7 @@ from lxml import html# engine dependent configcategories = ['videos']paging = True+language = ""# search-urlurl = 'http://www.subtitleseeker.com/'@@ -41,6 +42,10 @@ def response(resp):for result in dom.xpath(results_xpath):link = result.xpath(".//a")[0]href = link.attrib.get('href')++ if language is not "":+ href = href + language + "/"+title = escape(link.xpath(".//text()")[0])content = result.xpath('.//div[contains(@class,"red")]//text()')[0]diff --git a/searx/settings.yml b/searx/settings.ymlindex cc7073181..e3fe9b251 100644--- a/searx/settings.yml+++ b/searx/settings.yml@@ -130,6 +130,9 @@ engines:- name : subtitleseekerengine : subtitleseekershortcut : ss+# The language is an option. You can put any language written in english+# Examples : English, French, German, Hungarian, Chinese...+# language : English- name : startpageengine : startpage