diff options
| author | Markus Heiser <markus.heiser@darmarIT.de> | 2019-12-29 09:47:06 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-12-29 09:47:06 +0100 |
| commit | 36e72a46192235615f63a02984ab88c70145b0ec (patch) | |
| tree | 0c2e238ed8fd03a95a090692d0d761fe2ea13d79 /searx/engines/flickr_noapi.py | |
| parent | b2e1ee8d35050033b41765a2de49c0eea5f8b4b4 (diff) | |
| parent | f6d66c0f6f1d8f1f583d9000ee0123450cce8130 (diff) | |
Merge branch 'master' into fix-engine-spotify
Diffstat (limited to 'searx/engines/flickr_noapi.py')
| -rw-r--r-- | searx/engines/flickr_noapi.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/searx/engines/flickr_noapi.py b/searx/engines/flickr_noapi.py index eeee413ec..198ac2cff 100644 --- a/searx/engines/flickr_noapi.py +++ b/searx/engines/flickr_noapi.py @@ -16,7 +16,8 @@ from json import loads from time import time import re from searx.engines import logger -from searx.url_utils import urlencode, unquote +from searx.url_utils import urlencode +from searx.utils import ecma_unescape, html_to_text logger = logger.getChild('flickr-noapi') @@ -75,11 +76,10 @@ def response(resp): for index in legend: photo = model_export['main'][index[0]][int(index[1])][index[2]][index[3]][int(index[4])] - author = unquote(photo.get('realname', '')) - source = unquote(photo.get('username', '')) + ' @ Flickr' - title = unquote(photo.get('title', '')) - content = unquote(photo.get('description', '')) - + author = ecma_unescape(photo.get('realname', '')) + source = ecma_unescape(photo.get('username', '')) + ' @ Flickr' + title = ecma_unescape(photo.get('title', '')) + content = html_to_text(ecma_unescape(photo.get('description', ''))) img_src = None # From the biggest to the lowest format for image_size in image_sizes: |