diff options
| author | Bnyro <bnyro@tutanota.com> | 2024-02-10 10:46:52 +0100 |
|---|---|---|
| committer | Markus Heiser <markus.heiser@darmarIT.de> | 2024-02-11 11:28:47 +0100 |
| commit | 11c0651ef47a72395d2d386d7600d951b0987ea0 (patch) | |
| tree | eadda37133dea3b802ba03999a72eebe5f7b9aa2 /searx/engines | |
| parent | bffc4905ce9ed583b09b2d641f6de1a8be517f09 (diff) | |
[fix] lingva: redirect and parsing error
Diffstat (limited to 'searx/engines')
| -rw-r--r-- | searx/engines/lingva.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/searx/engines/lingva.py b/searx/engines/lingva.py index 124499719..cc5646050 100644 --- a/searx/engines/lingva.py +++ b/searx/engines/lingva.py @@ -16,7 +16,7 @@ about = { engine_type = 'online_dictionary' categories = ['general'] -url = "https://lingva.thedaviddelta.com/" +url = "https://lingva.thedaviddelta.com" search_url = "{url}/api/v1/{from_lang}/{to_lang}/{query}" @@ -48,8 +48,6 @@ def response(resp): infobox = "" for translation in info["extraTranslations"]: - infobox += f"<b>{translation['type']}</b>" - for word in translation["list"]: infobox += f"<dl><dt>{word['word']}</dt>" |