From 5d74bf382012c73c701e1a4969e0f420b099db9f Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Tue, 28 Dec 2021 16:26:38 +0100 Subject: [PATCH] [enh] move dictionaries, Erowid & IMDb out of general category The general category is the category that is searched by default. From a privacy standpoint it doesn't make sense to send all general queries to specialized search engines that cannot deal with those queries anyway. --- searx/engines/duden.py | 2 +- searx/engines/imdb.py | 4 +--- searx/engines/sjp.py | 2 +- searx/engines/translated.py | 2 +- searx/settings.yml | 10 +++++----- 5 files changed, 9 insertions(+), 11 deletions(-) diff --git a/searx/engines/duden.py b/searx/engines/duden.py index 090295b91..da4c4f7da 100644 --- a/searx/engines/duden.py +++ b/searx/engines/duden.py @@ -19,7 +19,7 @@ about = { "language": 'de', } -categories = ['general', 'dictionaries'] +categories = ['dictionaries'] paging = True # search-url diff --git a/searx/engines/imdb.py b/searx/engines/imdb.py index bb6258cf4..0897b8dca 100644 --- a/searx/engines/imdb.py +++ b/searx/engines/imdb.py @@ -27,9 +27,7 @@ about = { "results": 'HTML', } -categories = [ - 'general', -] +categories = [] paging = False # suggestion_url = "https://sg.media-imdb.com/suggestion/{letter}/{query}.json" diff --git a/searx/engines/sjp.py b/searx/engines/sjp.py index 97a81d8a7..8342a2819 100644 --- a/searx/engines/sjp.py +++ b/searx/engines/sjp.py @@ -21,7 +21,7 @@ about = { "language": 'pl', } -categories = ['general', 'dictionaries'] +categories = ['dictionaries'] paging = False URL = 'https://sjp.pwn.pl' diff --git a/searx/engines/translated.py b/searx/engines/translated.py index 6cc56328b..9900c017b 100644 --- a/searx/engines/translated.py +++ b/searx/engines/translated.py @@ -14,7 +14,7 @@ about = { } engine_type = 'online_dictionary' -categories = ['general', 'dictionaries'] +categories = ['dictionaries'] url = 'https://api.mymemory.translated.net/get?q={query}&langpair={from_lang}|{to_lang}{key}' web_url = 'https://mymemory.translated.net/en/{from_lang}/{to_lang}/{query}' weight = 100 diff --git a/searx/settings.yml b/searx/settings.yml index 0f1369328..765b33a3e 100644 --- a/searx/settings.yml +++ b/searx/settings.yml @@ -435,7 +435,7 @@ engines: url_xpath: //dl[@class="results-list"]/dt[@class="result-title"]/a/@href title_xpath: //dl[@class="results-list"]/dt[@class="result-title"]/a/text() content_xpath: //dl[@class="results-list"]/dd[@class="result-details"] - categories: general + categories: [] shortcut: ew disabled: true about: @@ -494,7 +494,7 @@ engines: content_xpath: //section[contains(@class, "word__defination")] first_page_num: 1 shortcut: et - categories: [general, dictionaries] + categories: [dictionaries] disabled: true about: website: https://www.etymonline.com/ @@ -1419,7 +1419,7 @@ engines: - name: wiktionary engine: mediawiki shortcut: wt - categories: [general, dictionaries] + categories: [dictionaries] base_url: "https://{language}.wiktionary.org/" number_of_results: 5 search_type: text @@ -1601,14 +1601,14 @@ engines: engine: wordnik shortcut: def base_url: https://www.wordnik.com/ - categories: [general, dictionaries] + categories: [dictionaries] timeout: 5.0 disabled: true - name: woxikon.de synonyme engine: xpath shortcut: woxi - categories: [general, dictionaries] + categories: [dictionaries] timeout: 5.0 disabled: true search_url: https://synonyme.woxikon.de/synonyme/{query}.php