Merge pull request #1800 from Yetangitu/flickr_noapi_double_encode

[engines|fix] flickr_noapi: Fix double-encode error (fixes #1799)
This commit is contained in:
Adam Tauber 2020-01-08 00:42:17 +00:00 committed by GitHub
commit 68abe6ff11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -118,9 +118,9 @@ def response(resp):
'template': 'images.html' 'template': 'images.html'
} }
try: try:
result['author'] = author.encode('utf-8') result['author'] = author
result['title'] = title.encode('utf-8') result['title'] = title
result['content'] = content.encode('utf-8') result['content'] = content
except: except:
result['author'] = '' result['author'] = ''
result['title'] = '' result['title'] = ''