From 916739d6b41957c3f277dea7c1429488560a3784 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Sun, 12 May 2024 17:52:52 +0200 Subject: [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 --- searx/engines/soundcloud.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'searx/engines/soundcloud.py') diff --git a/searx/engines/soundcloud.py b/searx/engines/soundcloud.py index 3181d39b7..3281ea398 100644 --- a/searx/engines/soundcloud.py +++ b/searx/engines/soundcloud.py @@ -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 -- cgit v1.2.3