SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.
Python bingbravedegoogleduckduckgogooglemetasearchprivacypythonqwantsearchsearch-enginesearxsearxngstartpageyahoo
[fix] engine: Library of Congress - image & thumb links
Markus Heiser36a6f9c95fe8
diff --git a/searx/engines/loc.py b/searx/engines/loc.pyindex 927800061..919be7d26 100644--- a/searx/engines/loc.py+++ b/searx/engines/loc.py@@ -63,8 +63,8 @@ def response(resp):if not url:continue- img_src = result['item'].get('service_medium')- if not img_src or img_src == 'https://memory.loc.gov/pp/grp.gif':+ img_list = result.get('image_url')+ if not img_list:continuetitle = result['title']@@ -88,8 +88,8 @@ def response(resp):'url': url,'title': title,'content': ' / '.join([i for i in content_items if i]),- 'img_src': img_src,- 'thumbnail_src': result['item'].get('thumb_gallery'),+ 'img_src': img_list[-1],+ 'thumbnail_src': img_list[0],'author': author,})