summaryrefslogtreecommitdiff
path: root/searx/engines/deepl.py
diff options
context:
space:
mode:
authorBnyro <bnyro@tutanota.com>2024-04-25 19:48:37 +0200
committerMarkus Heiser <markus.heiser@darmarIT.de>2024-04-26 07:33:28 +0200
commit0a4280a13787bd3e132b2b9c4c2f7b1816aa6906 (patch)
tree1dc5948ae486670892e9f5212d1cdd0943e89c6f /searx/engines/deepl.py
parent91522f3801e11aac117c8f2b3c18a87dea0ebad0 (diff)
[refactor] translation engines: add translate category
Co-authored-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/engines/deepl.py')
-rw-r--r--searx/engines/deepl.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/searx/engines/deepl.py b/searx/engines/deepl.py
index 9e4fbe21e..ce2109138 100644
--- a/searx/engines/deepl.py
+++ b/searx/engines/deepl.py
@@ -13,7 +13,7 @@ about = {
}
engine_type = 'online_dictionary'
-categories = ['general']
+categories = ['general', 'translate']
url = 'https://api-free.deepl.com/v2/translate'
api_key = None
@@ -51,11 +51,6 @@ def response(resp):
infobox += "</dl>"
- results.append(
- {
- 'infobox': 'Deepl',
- 'content': infobox,
- }
- )
+ results.append({'answer': infobox})
return results