summaryrefslogtreecommitdiff
path: root/searx/results.py
diff options
context:
space:
mode:
authorMarc Abonce Seguin <marc-abonce@mailbox.org>2020-07-26 23:26:30 -0700
committerMarc Abonce Seguin <marc-abonce@mailbox.org>2020-08-09 15:42:55 -0700
commitc9c39b3e79bfc24031ae1d352d290b9ec180e6ac (patch)
treeca311d9059f7493fbf5e90854203b033b28da0b5 /searx/results.py
parent574e99c4de2e6a42a25bd2c984e729110a9efdd0 (diff)
downloadsearxng-c9c39b3e79bfc24031ae1d352d290b9ec180e6ac.tar.gz
searxng-c9c39b3e79bfc24031ae1d352d290b9ec180e6ac.zip
add engine's name in infobox's header
Diffstat (limited to 'searx/results.py')
-rw-r--r--searx/results.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/searx/results.py b/searx/results.py
index 4fed58e55..8673ec339 100644
--- a/searx/results.py
+++ b/searx/results.py
@@ -60,6 +60,8 @@ def merge_two_infoboxes(infobox1, infobox2):
if weight2 > weight1:
infobox1['engine'] = infobox2['engine']
+ infobox1['engines'] |= infobox2['engines']
+
if 'urls' in infobox2:
urls1 = infobox1.get('urls', None)
if urls1 is None:
@@ -189,6 +191,7 @@ class ResultContainer(object):
def _merge_infobox(self, infobox):
add_infobox = True
infobox_id = infobox.get('id', None)
+ infobox['engines'] = set([infobox['engine']])
if infobox_id is not None:
parsed_url_infobox_id = urlparse(infobox_id)
for existingIndex in self.infoboxes: