[mod] SepiaSearch: re-engineered & upgrade to data_type: traits_v1

- fetch_traits() SepiaSearch and Peertube are using identical languages.
  Replace module's dictionary `supported_languages` by `engine.traits.languages`
  (data_type: `traits_v1`).
- fixed code to pass pylint
- request(): add argument boostLanguages
- response(): is replaced by peertube's video_response() function, which adds
  metadata from channel name, host & tags

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
Markus Heiser 2023-01-01 15:50:21 +01:00
parent 8a8c584fec
commit 057e9bc1d1
3 changed files with 84 additions and 66 deletions

View file

@ -17,3 +17,11 @@ Peertube Video
.. automodule:: searx.engines.peertube
:members:
.. _sepiasearch engine:
SepiaSearch
===========
.. automodule:: searx.engines.sepiasearch
:members: