summaryrefslogtreecommitdiff
path: root/searx/utils.py
diff options
context:
space:
mode:
authorHermógenes Oliveira <OliveiraHermogenes@users.noreply.github.com>2025-11-18 15:59:19 -0300
committerBnyro <bnyro@tutanota.com>2025-11-20 13:24:17 +0100
commitaf111e413cc8b5c64ba5b0d4f10eb94239de3aa7 (patch)
tree632aabd09e3f75ca0f08aba0ed56cb3ff326fa72 /searx/utils.py
parent431bf5d235493ad527f8a1f22d3375a35b76aace (diff)
[fix] recoll engine: fix media preview
The results from the recoll engine were not displaying the usual toggle for showing media previews. After the changes described bellow, the toggle is displayed and works as expected. In the JSON returned by recoll-webui, the field containing the mimetype is actually `mtype`, not `mime`. Furthermore, according to the documentation for the `File` class in `searx/result_types/file.py`, `embedded` should contain the URL to the media itself. The embedding of the media into the page for preview is done in `searx/templates/simple/result_templates/file.html`.
Diffstat (limited to 'searx/utils.py')
0 files changed, 0 insertions, 0 deletions