diff options
author | Alexandre Flament <alex@al-f.net> | 2020-12-10 10:40:45 +0100 |
---|---|---|
committer | Alexandre Flament <alex@al-f.net> | 2020-12-10 10:52:06 +0100 |
commit | d41cafd5f3554f2adf6728b4ffaafd6c8a49a1ce (patch) | |
tree | edeb2d73f69b47ceec6089de817e34928fed6bf1 | |
parent | 820b468bfe96f693d60ce06f1e78af51f00deefc (diff) | |
download | searxng-d41cafd5f3554f2adf6728b4ffaafd6c8a49a1ce.tar.gz searxng-d41cafd5f3554f2adf6728b4ffaafd6c8a49a1ce.zip |
[fix] xpath, mojeek: fix commit 58d72f26925d56e22330c54be03c3dcbee0c4135
before commit 58d72f2, category was not set in xpath.py,
so searx/engines/__init__py was setting the category to ['general']
the commit 58d72f2 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
-rw-r--r-- | searx/engines/xpath.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/searx/engines/xpath.py b/searx/engines/xpath.py index d420e250a..1507176ec 100644 --- a/searx/engines/xpath.py +++ b/searx/engines/xpath.py @@ -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): |