summaryrefslogtreecommitdiff
path: root/searx/engines/xpath.py
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2013-12-30 14:04:37 -0800
committerAdam Tauber <asciimoo@gmail.com>2013-12-30 14:04:37 -0800
commitff0bbd3566ea126b0cd0cb8b9c60d30c8105e765 (patch)
treea33c6fa048af482303e40231423dc341b0c56325 /searx/engines/xpath.py
parent141b04c6dde9df0e6b7f2e2b30ec8131429c8932 (diff)
parentd3e272d0350aec7d8c397bd2fd8ae5c1a84362bb (diff)
Merge pull request #10 from dalf/master
bug fixes and dailymotion engine
Diffstat (limited to 'searx/engines/xpath.py')
-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 068f2ba61..ad3a97ffa 100644
--- a/searx/engines/xpath.py
+++ b/searx/engines/xpath.py
@@ -28,7 +28,7 @@ def extract_url(xpath_results):
url = xpath_results[0].attrib.get('href')
else:
url = xpath_results.attrib.get('href')
- if not url.startswith('http://') or not url.startswith('https://'):
+ if not url.startswith('http://') and not url.startswith('https://'):
url = 'http://'+url
parsed_url = urlparse(url)
if not parsed_url.netloc: