[mod] engine: MyMemory Translated - typification and html to text (#6132)

The implementation is normalized, type annotations are applied, and the results
are freed from the HTML markup (which is partially present).

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
Markus Heiser
2026-05-25 16:38:06 +02:00
committed by GitHub
parent 46071a011a
commit 89b89a88fe
2 changed files with 37 additions and 20 deletions
+2 -2
View File
@@ -30,7 +30,7 @@ import httpx
if typing.TYPE_CHECKING:
import searx.preferences
import searx.results
from searx.search.processors import OnlineParamTypes
from searx.search.processors import OnlineParamTypes, OnlineDictParams, OnlineCurrenciesParams
class SXNG_Request(flask.Request):
@@ -83,4 +83,4 @@ class SXNG_Response(httpx.Response):
"""
ok: bool
search_params: "OnlineParamTypes"
search_params: "OnlineParamTypes | OnlineDictParams | OnlineCurrenciesParams"