diff options
author | asciimoo <asciimoo@gmail.com> | 2013-10-27 12:01:03 +0100 |
---|---|---|
committer | asciimoo <asciimoo@gmail.com> | 2013-10-27 12:01:03 +0100 |
commit | 7965da55a7a3f494722750011b2a6d5110956750 (patch) | |
tree | b483414c208102cafdf058e60fcf87c3e6b8da43 /searx/engines/xpath.py | |
parent | b69fb84b9947611b73a04db5c63eab30221a93fc (diff) | |
download | searxng-7965da55a7a3f494722750011b2a6d5110956750.tar.gz searxng-7965da55a7a3f494722750011b2a6d5110956750.zip |
[fix] urlparsing fix
Diffstat (limited to 'searx/engines/xpath.py')
-rw-r--r-- | searx/engines/xpath.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/searx/engines/xpath.py b/searx/engines/xpath.py index 00fc3fac2..8c2e04d5c 100644 --- a/searx/engines/xpath.py +++ b/searx/engines/xpath.py @@ -32,6 +32,8 @@ def extract_url(xpath_results): parsed_url = urlparse(url) if not parsed_url.netloc: raise Exception('Cannot parse url') + if not parsed_url.path: + url += '/' return url def request(query, params): |