diff options
author | Bnyro <bnyro@tutanota.com> | 2024-02-20 10:51:58 +0100 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarIT.de> | 2024-02-25 16:22:37 +0100 |
commit | e76ab1a4b3a99b0ec2ef90c3aadc92ffbf6889b1 (patch) | |
tree | be5443686fbe1ab6a6fa95e55a12a189230ba92e /searx/engines/artic.py | |
parent | b683aa63fb3e1689c28bd4b762b4ad962e8e232c (diff) | |
download | searxng-e76ab1a4b3a99b0ec2ef90c3aadc92ffbf6889b1.tar.gz searxng-e76ab1a4b3a99b0ec2ef90c3aadc92ffbf6889b1.zip |
[refactor] images: add resolution, image format and filesize fields
Co-authored-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/engines/artic.py')
-rw-r--r-- | searx/engines/artic.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/searx/engines/artic.py b/searx/engines/artic.py index c0ae0a5e7..506a9cea6 100644 --- a/searx/engines/artic.py +++ b/searx/engines/artic.py @@ -57,11 +57,10 @@ def response(resp): results.append( { 'url': 'https://artic.edu/artworks/%(id)s' % result, - 'title': result['title'] + " (%(date_display)s) // %(artist_display)s" % result, - 'content': result['medium_display'], + 'title': result['title'] + " (%(date_display)s) // %(artist_display)s" % result, + 'content': "%(medium_display)s // %(dimensions)s" % result, 'author': ', '.join(result['artist_titles']), 'img_src': image_api + '/%(image_id)s/full/843,/0/default.jpg' % result, - 'img_format': result['dimensions'], 'template': 'images.html', } ) |