summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2024-11-26 09:56:41 +0100
committerMarkus Heiser <markus.heiser@darmarIT.de>2024-11-26 10:06:07 +0100
commitac0c6cc2d146e6fcf18006d9c71d3796be5a9c2b (patch)
treeba0f0b509d087fc7a7e45e103ce737af2ed0c267
parent36a6f9c95fe8db95d861aca01c95354545dd5feb (diff)
downloadsearxng-ac0c6cc2d146e6fcf18006d9c71d3796be5a9c2b.tar.gz
searxng-ac0c6cc2d146e6fcf18006d9c71d3796be5a9c2b.zip
[chore] remove invalid base_url from settings.yml engines
The engines do not have / do not need a property `base_url`, lets remove it from the settings.yml Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
-rw-r--r--searx/engines/wordnik.py6
-rw-r--r--searx/settings.yml3
2 files changed, 1 insertions, 8 deletions
diff --git a/searx/engines/wordnik.py b/searx/engines/wordnik.py
index 21eaeccc3..9b048a068 100644
--- a/searx/engines/wordnik.py
+++ b/searx/engines/wordnik.py
@@ -20,13 +20,9 @@ about = {
categories = ['general']
paging = False
-URL = 'https://www.wordnik.com'
-SEARCH_URL = URL + '/words/{query}'
-
def request(query, params):
- params['url'] = SEARCH_URL.format(query=query)
- logger.debug(f"query_url --> {params['url']}")
+ params['url'] = f"https://www.wordnik.com/words/{query}"
return params
diff --git a/searx/settings.yml b/searx/settings.yml
index 27b78b8da..dd981e5e9 100644
--- a/searx/settings.yml
+++ b/searx/settings.yml
@@ -443,7 +443,6 @@ engines:
shortcut: wp
# add "list" to the array to get results in the results list
display_type: ["infobox"]
- base_url: 'https://{language}.wikipedia.org/'
categories: [general]
- name: bilibili
@@ -2233,7 +2232,6 @@ engines:
- name: wordnik
engine: wordnik
shortcut: def
- base_url: https://www.wordnik.com/
categories: [dictionaries]
timeout: 5.0
@@ -2282,7 +2280,6 @@ engines:
- name: sjp.pwn
engine: sjp
shortcut: sjp
- base_url: https://sjp.pwn.pl/
timeout: 5.0
disabled: true