mirror of
https://github.com/searxng/searxng.git
synced 2026-10-25 05:44:14 +00:00
[fix] resolve flickr_noapi encoding issues
This commit is contained in:
1 parent
4ca0d8cb0f
commit
32f7877235
1 file changed
+4
-8
@@ -117,14 +117,10 @@ def response(resp):
|
||||
'img_format': img_format,
|
||||
'template': 'images.html'
|
||||
}
|
||||
try:
|
||||
result['author'] = author
|
||||
result['title'] = title
|
||||
result['content'] = content
|
||||
except:
|
||||
result['author'] = ''
|
||||
result['title'] = ''
|
||||
result['content'] = ''
|
||||
result['author'] = author.encode('utf-8', 'ignore').decode('utf-8')
|
||||
result['source'] = source.encode('utf-8', 'ignore').decode('utf-8')
|
||||
result['title'] = title.encode('utf-8', 'ignore').decode('utf-8')
|
||||
result['content'] = content.encode('utf-8', 'ignore').decode('utf-8')
|
||||
results.append(result)
|
||||
|
||||
return results
|
||||
Reference in new issue
Block a user