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
only return one url per "type" in Wikidata (#2151)
Marc Abonce Seguin0d8970c8f2e2
diff --git a/searx/engines/wikidata.py b/searx/engines/wikidata.pyindex 9d6238d8b..eb7e1dc71 100644--- a/searx/engines/wikidata.py+++ b/searx/engines/wikidata.py@@ -382,7 +382,7 @@ def add_attribute(attributes, id_cache, property_id, default_label=None, date=Fa# requires property_id unless it's a wiki link (defined in link_type)def add_url(urls, result, id_cache, property_id=None, default_label=None, url_prefix=None, results=None,- link_type=None):+ link_type=None, only_first=True):links = []# wiki links don't have property in wikidata page@@ -421,6 +421,8 @@ def add_url(urls, result, id_cache, property_id=None, default_label=None, url_prurls.append(u)if results is not None:results.append(u)+ if only_first:+ breakdef get_imdblink(result, url_prefix):