mirror of
https://github.com/searxng/searxng
synced 2024-01-01 18:24:07 +00:00
[fix] resolve flickr_noapi encoding issues
This commit is contained in:
parent
4ca0d8cb0f
commit
32f7877235
@ -117,14 +117,10 @@ def response(resp):
|
|||||||
'img_format': img_format,
|
'img_format': img_format,
|
||||||
'template': 'images.html'
|
'template': 'images.html'
|
||||||
}
|
}
|
||||||
try:
|
result['author'] = author.encode('utf-8', 'ignore').decode('utf-8')
|
||||||
result['author'] = author
|
result['source'] = source.encode('utf-8', 'ignore').decode('utf-8')
|
||||||
result['title'] = title
|
result['title'] = title.encode('utf-8', 'ignore').decode('utf-8')
|
||||||
result['content'] = content
|
result['content'] = content.encode('utf-8', 'ignore').decode('utf-8')
|
||||||
except:
|
|
||||||
result['author'] = ''
|
|
||||||
result['title'] = ''
|
|
||||||
result['content'] = ''
|
|
||||||
results.append(result)
|
results.append(result)
|
||||||
|
|
||||||
return results
|
return results
|
||||||
|
Loading…
Reference in New Issue
Block a user