mirror of https://github.com/searxng/searxng.git
[fix] engine - moviepilot instead of thumbnail use img_src
Instead of thumbnail use img_src in the result item, otherwise the "movies"
categories looks clunky.
Related:
- b4e0d2eedc (r128785388)
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
parent
159629c588
commit
e1a8b8189f
|
@ -105,11 +105,11 @@ def response(resp):
|
||||||
item['metadata'] = html_to_text(result.get('meta_short', ''))
|
item['metadata'] = html_to_text(result.get('meta_short', ''))
|
||||||
|
|
||||||
if result.get('image'):
|
if result.get('image'):
|
||||||
item['thumbnail'] = image_url.format(image_id=result['image'], filename=result['image_filename'])
|
item['img_src'] = image_url.format(image_id=result['image'], filename=result['image_filename'])
|
||||||
else:
|
else:
|
||||||
item['url'] = result['url']
|
item['url'] = result['url']
|
||||||
item['content'] = ', '.join([result['class'], result['info'], result['more']])
|
item['content'] = ', '.join([result['class'], result['info'], result['more']])
|
||||||
item['thumbnail'] = result['image']
|
item['img_src'] = result['image']
|
||||||
|
|
||||||
results.append(item)
|
results.append(item)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue