diff options
| author | Bnyro <bnyro@tutanota.com> | 2024-04-25 19:48:37 +0200 |
|---|---|---|
| committer | Markus Heiser <markus.heiser@darmarIT.de> | 2024-04-26 07:33:28 +0200 |
| commit | 0a4280a13787bd3e132b2b9c4c2f7b1816aa6906 (patch) | |
| tree | 1dc5948ae486670892e9f5212d1cdd0943e89c6f /searx/engines/deepl.py | |
| parent | 91522f3801e11aac117c8f2b3c18a87dea0ebad0 (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.py | 9 |
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 |