summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2021-12-28 16:26:38 +0100
committerMartin Fischer <martin@push-f.com>2022-01-05 11:03:44 +0100
commit5d74bf382012c73c701e1a4969e0f420b099db9f (patch)
tree2980f16c640afc9fa0247536f750c642518291d4
parentab90e2ac49778153409397d4a2c34e9051963a0f (diff)
downloadsearxng-5d74bf382012c73c701e1a4969e0f420b099db9f.tar.gz
searxng-5d74bf382012c73c701e1a4969e0f420b099db9f.zip
[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.
-rw-r--r--searx/engines/duden.py2
-rw-r--r--searx/engines/imdb.py4
-rw-r--r--searx/engines/sjp.py2
-rw-r--r--searx/engines/translated.py2
-rw-r--r--searx/settings.yml10
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