From 27171dd34a5ccc269517c1398f8cb1fe5fa6657a Mon Sep 17 00:00:00 2001 From: Quentin Aristote Date: Fri, 26 Nov 2021 15:53:01 +0100 Subject: change emojipedia's xpath to not crash when no result is found in the previous version, results_xpath also matched the xpath of the message that says no result was found, but inside that element url_xpath would not match anything, causing searx to crash --- config/services/web/searx/searx/engines.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/config/services/web/searx/searx/engines.nix b/config/services/web/searx/searx/engines.nix index 2d9a67f..c85666a 100644 --- a/config/services/web/searx/searx/engines.nix +++ b/config/services/web/searx/searx/engines.nix @@ -101,10 +101,10 @@ in { baseUrl = "https://emojipedia.org/search/"; queryKeyword = "q"; }; - results_xpath = ''//ol[@class="search-results"]/li''; - url_xpath = "./h2/a/@href"; - title_xpath = "./h2/a"; - content_xpath = "./p"; + results_xpath = ''//ol[@class="search-results"]/li/h2''; + url_xpath = "./a/@href"; + title_xpath = "./a"; + content_xpath = "../p"; shortcut = "emoji"; disabled = true; about = { -- cgit v1.2.3