summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2020-01-08 00:42:17 +0000
committerGitHub <noreply@github.com>2020-01-08 00:42:17 +0000
commit68abe6ff11f22f7af18e15fac3ab24f3b4700574 (patch)
treee0bff2b30b18bf6666be1eff3f5fb7586797bd59
parent22d05b3e596029738eba432e11015f8c03c85312 (diff)
parentdb9d7d47bdce4e4e68e681748af01f84f993434c (diff)
downloadsearxng-68abe6ff11f22f7af18e15fac3ab24f3b4700574.tar.gz
searxng-68abe6ff11f22f7af18e15fac3ab24f3b4700574.zip
Merge pull request #1800 from Yetangitu/flickr_noapi_double_encode
[engines|fix] flickr_noapi: Fix double-encode error (fixes #1799)
-rw-r--r--searx/engines/flickr_noapi.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/searx/engines/flickr_noapi.py b/searx/engines/flickr_noapi.py
index e1abb378f..c8ee34f7a 100644
--- a/searx/engines/flickr_noapi.py
+++ b/searx/engines/flickr_noapi.py
@@ -118,9 +118,9 @@ def response(resp):
'template': 'images.html'
}
try:
- result['author'] = author.encode('utf-8')
- result['title'] = title.encode('utf-8')
- result['content'] = content.encode('utf-8')
+ result['author'] = author
+ result['title'] = title
+ result['content'] = content
except:
result['author'] = ''
result['title'] = ''