summaryrefslogtreecommitdiff
path: root/searx/templates/oscar/result_templates/videos.html
diff options
context:
space:
mode:
Diffstat (limited to 'searx/templates/oscar/result_templates/videos.html')
-rw-r--r--searx/templates/oscar/result_templates/videos.html10
1 files changed, 5 insertions, 5 deletions
diff --git a/searx/templates/oscar/result_templates/videos.html b/searx/templates/oscar/result_templates/videos.html
index ad17ffe33..586dffc22 100644
--- a/searx/templates/oscar/result_templates/videos.html
+++ b/searx/templates/oscar/result_templates/videos.html
@@ -3,15 +3,15 @@
{{- result_header(result, favicons, loop.index) -}}
{{- result_sub_header(result, loop.index) -}}
-{%- if result.embedded -%}
+{%- if result.data_src -%}
<small> &bull; <a class="text-info btn-collapse collapsed cursor-pointer media-loader disabled_if_nojs" data-toggle="collapse" data-target="#result-video-{{ index }}" data-btn-text-collapsed="{{ _('show video') }}" data-btn-text-not-collapsed="{{ _('hide video') }}" aria-labelledby="result-{{loop.index}}">{{ icon('film') }} {{ _('show video') }}</a></small>
{%- endif -%}
-{%- if result.embedded -%}
-<div id="result-video-{{ index }}" class="collapse">
- {{- result.embedded|safe -}}
+{% if result.data_src -%}
+<div id="result-video-{{ index }}" class="embedded-video collapse">
+ <iframe data-src="{{result.data_src}}" width="540" height="304" frameborder="0" allowfullscreen></iframe>
</div>
-{%- endif -%}
+{%- endif %}
<div class="container-fluid">{{- "" -}}
<div class="row">{{- "" -}}