summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2016-03-30 15:47:15 +0200
committerAdam Tauber <adam.tauber@balabit.com>2016-03-30 15:47:49 +0200
commit5cbe4c53329a1fd2b949660fda25ff7a4ce6f254 (patch)
treef7de7c20d2616653dc3519e90ee7e42edfae890d
parentfff9460238f63f05113c8dfc970b69d84b99a991 (diff)
downloadsearxng-5cbe4c53329a1fd2b949660fda25ff7a4ce6f254.tar.gz
searxng-5cbe4c53329a1fd2b949660fda25ff7a4ce6f254.zip
[fix] try to decode url - closes #527
-rw-r--r--searx/results.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/searx/results.py b/searx/results.py
index 7e087382c..5d51eb5b5 100644
--- a/searx/results.py
+++ b/searx/results.py
@@ -116,6 +116,10 @@ class ResultContainer(object):
self.results[engine_name].extend(results)
for i, result in enumerate(results):
+ try:
+ result['url'] = result['url'].decode('utf-8')
+ except:
+ pass
position = i + 1
self._merge_result(result, position)