Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d41cafd5 authored by Alexandre Flament's avatar Alexandre Flament
Browse files

[fix] xpath, mojeek: fix commit 58d72f26

before commit 58d72f26, category was not set in xpath.py,
so searx/engines/__init__py was setting the category to ['general']

the commit 58d72f26 set the category to [] which is not replaced by searx/engines/__init__.py
consequence: the mojeek engine is hidden in the preferences.

this commit revert the xpath.py change.

close #2368
parent 820b468b
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -7,7 +7,6 @@ url_xpath = None
content_xpath = None
title_xpath = None
thumbnail_xpath = False
categories = []
paging = False
suggestion_xpath = ''
results_xpath = ''
@@ -39,7 +38,7 @@ def request(query, params):
def response(resp):
    results = []
    dom = html.fromstring(resp.text)
    is_onion = True if 'onions' in categories else False
    is_onion = True if 'onions' in categories else False  # pylint: disable=undefined-variable

    if results_xpath:
        for result in eval_xpath_list(dom, results_xpath):