summaryrefslogtreecommitdiff
path: root/searx
diff options
context:
space:
mode:
authorasciimoo <asciimoo@gmail.com>2014-01-30 03:10:20 +0100
committerasciimoo <asciimoo@gmail.com>2014-01-30 03:10:20 +0100
commitb647244abf32076dd5f82817b49346a18ddcdc69 (patch)
tree7109d7bf61567ef963c8a3ec433465435b8c875a /searx
parent72793725e2049628d4de57ad46bb4113eb83faa6 (diff)
downloadsearxng-b647244abf32076dd5f82817b49346a18ddcdc69.tar.gz
searxng-b647244abf32076dd5f82817b49346a18ddcdc69.zip
[fix] function parameters
Diffstat (limited to 'searx')
-rw-r--r--searx/engines/xpath.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/searx/engines/xpath.py b/searx/engines/xpath.py
index 0b50f88bb..04b021e33 100644
--- a/searx/engines/xpath.py
+++ b/searx/engines/xpath.py
@@ -92,7 +92,8 @@ def response(resp):
results.append({'url': url, 'title': title, 'content': content})
else:
for url, title, content in zip(
- map(extract_url, dom.xpath(url_xpath)),
+ (extract_url(x, search_url) for
+ x in dom.xpath(url_xpath)),
map(extract_text, dom.xpath(title_xpath)),
map(extract_text, dom.xpath(content_xpath))
):