diff options
| author | Quentin Aristote <quentin@aristote.fr> | 2021-11-26 15:53:01 +0100 |
|---|---|---|
| committer | Quentin Aristote <quentin@aristote.fr> | 2021-11-26 15:53:01 +0100 |
| commit | 27171dd34a5ccc269517c1398f8cb1fe5fa6657a (patch) | |
| tree | 3598be194b0b9933efbdb626e235311d9c929d10 /config/services/web/searx | |
| parent | 58cf9e3d0512503eaca96e0fdd1c9fa68702fc43 (diff) | |
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
Diffstat (limited to 'config/services/web/searx')
| -rw-r--r-- | config/services/web/searx/searx/engines.nix | 8 |
1 files 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 = { |
