From 11c0651ef47a72395d2d386d7600d951b0987ea0 Mon Sep 17 00:00:00 2001 From: Bnyro Date: Sat, 10 Feb 2024 10:46:52 +0100 Subject: [PATCH] [fix] lingva: redirect and parsing error --- searx/engines/lingva.py | 4 +--- searx/settings.yml | 2 +- 2 files changed, 2 insertions(+), 4 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"{translation['type']}" - for word in translation["list"]: infobox += f"
{word['word']}
" diff --git a/searx/settings.yml b/searx/settings.yml index c44339938..8ce12880f 100644 --- a/searx/settings.yml +++ b/searx/settings.yml @@ -1044,7 +1044,7 @@ engines: engine: lingva shortcut: lv # set lingva instance in url, by default it will use the official instance - # url: https://lingva.thedaviddelta.com/ + # url: https://lingva.thedaviddelta.com - name: lobste.rs engine: xpath