From 46e131fdadd94910c0e258aa4e855ad8019edbf7 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Mon, 7 Feb 2022 16:16:57 +0100 Subject: [mod] result_templates/videos.html: replace embedded HTML by data_src Embedded HTML breaks SearXNG architecture. To modularize, HTML is generated in the templates (oscar & simple) and result parameter 'embedded' is replaced by 'data_src', an URL for embedded content ( -{%- endif -%} +{%- endif %}
{{- "" -}}
{{- "" -}} diff --git a/searx/templates/simple/result_templates/videos.html b/searx/templates/simple/result_templates/videos.html index 1b2e1c84e..6da70a8a2 100644 --- a/searx/templates/simple/result_templates/videos.html +++ b/searx/templates/simple/result_templates/videos.html @@ -2,7 +2,7 @@ {{ result_header(result, favicons, image_proxify) }} {{ result_sub_header(result) }} -{% if result.embedded -%} +{% if result.data_src -%} {%- endif %} {%- if result.content %} @@ -16,9 +16,9 @@ {% endif -%}

{{- result_sub_footer(result, proxify) -}} -{% if result.embedded -%} -