[feat] engines: add support for search.ch/web (Swiss)

This commit is contained in:
Bnyro
2026-06-18 11:06:36 +02:00
parent 4dfdc822cf
commit bd73cc09ea
2 changed files with 20 additions and 1 deletions
+1 -1
View File
@@ -292,7 +292,7 @@ def response(resp) -> EngineResults: # pylint: disable=too-many-branches
if results_xpath:
for result in eval_xpath_list(dom, results_xpath):
url = extract_url(eval_xpath_list(result, url_xpath, min_len=1), search_url)
url = extract_url(eval_xpath(result, url_xpath), search_url)
title = extract_text(eval_xpath_list(result, title_xpath, min_len=1))
content = extract_text(eval_xpath_list(result, content_xpath))
tmp_result = {'url': url, 'title': title, 'content': content}