From 636738779eb3af5b2756473c7123586d6f72222c Mon Sep 17 00:00:00 2001 From: Bnyro Date: Sun, 12 Oct 2025 20:18:10 +0200 Subject: [feat] video results: display video length on video thumbnail --- searx/templates/simple/macros.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'searx/templates/simple/macros.html') diff --git a/searx/templates/simple/macros.html b/searx/templates/simple/macros.html index df8469d72..43be87615 100644 --- a/searx/templates/simple/macros.html +++ b/searx/templates/simple/macros.html @@ -30,14 +30,15 @@ {%- endfor %} {{- result_close_link() -}} - {%- if result.thumbnail %}{{ result_open_link(result.url) }}{{ result_close_link() }}{% endif -%} + {%- if result.thumbnail %}{{ result_open_link(result.url, classes='thumbnail_link') }}{%- if result.length -%}{{ result.length }}{%- endif -%}{{ result_close_link() }}{% endif -%}

{{ result_link(result.url, result.title|safe) }}

{%- endmacro -%} {%- macro result_sub_header(result) -%} {%- if result.publishedDate %}{% endif -%} - {%- if result.length %}
{{ _('Length') }}: {{ result.length }}
{% endif -%} + + {%- if result.length and not result.thumbnail %}
{{ _('Length') }}: {{ result.length }}
{% endif -%} {%- if result.views %}
{{ _('Views') }}: {{ result.views }}
{% endif -%} {%- if result.author %}
{{ _('Author') }}: {{ result.author }}
{% endif -%} {%- if result.metadata %}
{{ result.metadata|safe }}
{% endif -%} -- cgit v1.2.3