mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
[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 <markus.heiser@darmarit.de>
This commit is contained in:
parent
b0aa6fe8a5
commit
657dcb973a
2 changed files with 14 additions and 8 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue