mirror of
https://github.com/searxng/searxng
synced 2024-01-01 18:24:07 +00:00
[fix] try to decode url - closes #527
This commit is contained in:
parent
fff9460238
commit
5cbe4c5332
@ -116,6 +116,10 @@ class ResultContainer(object):
|
|||||||
self.results[engine_name].extend(results)
|
self.results[engine_name].extend(results)
|
||||||
|
|
||||||
for i, result in enumerate(results):
|
for i, result in enumerate(results):
|
||||||
|
try:
|
||||||
|
result['url'] = result['url'].decode('utf-8')
|
||||||
|
except:
|
||||||
|
pass
|
||||||
position = i + 1
|
position = i + 1
|
||||||
self._merge_result(result, position)
|
self._merge_result(result, position)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user