diff options
author | Adam Tauber <asciimoo@gmail.com> | 2016-03-30 15:47:15 +0200 |
---|---|---|
committer | Adam Tauber <adam.tauber@balabit.com> | 2016-03-30 15:47:49 +0200 |
commit | 5cbe4c53329a1fd2b949660fda25ff7a4ce6f254 (patch) | |
tree | f7de7c20d2616653dc3519e90ee7e42edfae890d /searx | |
parent | fff9460238f63f05113c8dfc970b69d84b99a991 (diff) | |
download | searxng-5cbe4c53329a1fd2b949660fda25ff7a4ce6f254.tar.gz searxng-5cbe4c53329a1fd2b949660fda25ff7a4ce6f254.zip |
[fix] try to decode url - closes #527
Diffstat (limited to 'searx')
-rw-r--r-- | searx/results.py | 4 |
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) |