forked from Ponysearch/Ponysearch
[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
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue