[mod] typification of SearXNG: add new result type Video (#6743)

- Python class:   searx/result_types/video.py
- Jinja template: searx/templates/simple/result_templates/videos.html
- CSS (less)      client/simple/src/less/result_types/video.less

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
Markus Heiser
2026-09-20 16:12:32 +02:00
committed by Markus Heiser
parent fdd8525b1a
commit e40de2d992
9 changed files with 87 additions and 63 deletions

View File

@@ -0,0 +1,7 @@
.. _result_types.video:
=============
Video Results
=============
.. automodule:: searx.result_types.video

View File

@@ -19,13 +19,13 @@ following types have been implemented so far ..
main/paper
main/file
main/image
main/video
The :ref:`LegacyResult <LegacyResult>` is used internally for the results that
have not yet been typed. The templates can be used as orientation until the
final typing is complete.
- :ref:`template default` / :py:obj:`Result`
- :ref:`template videos`
- :ref:`template torrent`
- :ref:`template map`
- :ref:`template packages`

View File

@@ -129,29 +129,6 @@ audio_src : uri,
URL of an embedded ``<audio controls>``.
.. _template videos:
``videos.html``
---------------
Displays result fields from:
- :ref:`macro result_header` and
- :ref:`macro result_sub_header`
Additional fields used in the :origin:`videos.html
<searx/templates/simple/result_templates/videos.html>`:
iframe_src : :py:class:`str`
URL of an embedded ``<iframe>`` / the frame is collapsible.
The videos are displayed as small thumbnails in the main results list, there
is an additional button to collaps/open the embeded video.
content : :py:class:`str`
Description of the code fragment.
.. _template torrent:
``torrent.html``