mirror of
https://github.com/searxng/searxng.git
synced 2025-09-03 16:58:34 +02:00
[mod] simple theme: drop img_src from default results
The use of img_src AND thumbnail in the default results makes no sense (only a thumbnail is needed). In the current state this is rather confusing, because img_src is displayed like a thumbnail (small) and thumbnail is displayed like an image (large). Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
parent
0f2f52f0b5
commit
916739d6b4
37 changed files with 98 additions and 99 deletions
|
@ -94,9 +94,9 @@ def response(resp):
|
|||
'publishedDate': parser.parse(result['last_modified']),
|
||||
'iframe_src': "https://w.soundcloud.com/player/?url=" + uri,
|
||||
}
|
||||
img_src = result['artwork_url'] or result['user']['avatar_url']
|
||||
if img_src:
|
||||
res['img_src'] = img_src
|
||||
thumbnail = result['artwork_url'] or result['user']['avatar_url']
|
||||
if thumbnail:
|
||||
res['thumbnail'] = thumbnail
|
||||
results.append(res)
|
||||
|
||||
return results
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue