summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2021-09-04 15:34:18 +0200
committerGitHub <noreply@github.com>2021-09-04 15:34:18 +0200
commit33ea1d59096c08cc5b5045f975525d311d1960d1 (patch)
tree9160a9065af156c1bbd50ce3603754eae0c68ad5
parent39bbd15b39a7d7da49148bbb8079f974045e982d (diff)
parent9ff881f9375f451cfa387c3ee6a84844c808a5a2 (diff)
Merge pull request #289 from return42/fix-xpath
[fix] remove minimum length of content for XPath engine
-rw-r--r--searx/engines/xpath.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/engines/xpath.py b/searx/engines/xpath.py
index e14f982b9..0f88fb29a 100644
--- a/searx/engines/xpath.py
+++ b/searx/engines/xpath.py
@@ -194,7 +194,7 @@ def response(resp):
url = extract_url(eval_xpath_list(result, url_xpath, min_len=1), search_url)
title = extract_text(eval_xpath_list(result, title_xpath, min_len=1))
- content = extract_text(eval_xpath_list(result, content_xpath, min_len=1))
+ content = extract_text(eval_xpath_list(result, content_xpath))
tmp_result = {'url': url, 'title': title, 'content': content}
# add thumbnail if available