From 657dcb973abe7fa65381fcf53d804a8502625392 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Tue, 2 Jul 2024 12:08:10 +0200 Subject: [fix] engine yacy: update list of base URLs https://search.lomig.me Poor results / tested `!yacy :en hello` and got zero results https://yacy.ecosys.eu Slow response (> 6sec for trivial search terms) https://search.webproject.link Dead instance / URL offline Signed-off-by: Markus Heiser --- searx/engines/yacy.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'searx/engines/yacy.py') diff --git a/searx/engines/yacy.py b/searx/engines/yacy.py index 8f0718038..1328f1788 100644 --- a/searx/engines/yacy.py +++ b/searx/engines/yacy.py @@ -118,6 +118,8 @@ def _base_url() -> str: url = engines['yacy'].base_url # type: ignore if isinstance(url, list): url = random.choice(url) + if url.endswith("/"): + url = url[:-1] return url -- cgit v1.2.3