Browse Source

[fix] function parameters

asciimoo 11 years ago
parent
commit
b647244abf
1 changed files with 2 additions and 1 deletions
  1. 2 1
      searx/engines/xpath.py

+ 2 - 1
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))
         ):