.oO SearXNG Developer Documentation Oo.
|
Functions | |
minute_to_hm (minute) | |
request (query, params) | |
response (resp) | |
video_response (resp) | |
fetch_traits (EngineTraits engine_traits) | |
Variables | |
dict | about |
list | categories = ["videos"] |
bool | paging = True |
str | base_url = "https://peer.tube" |
bool | time_range_support = True |
dict | time_range_table |
bool | safesearch = True |
dict | safesearch_table = {0: 'both', 1: 'false', 2: 'false'} |
Peertube and :py:obj:`SepiaSearch <searx.engines.sepiasearch>` do share (more or less) the same REST API and the schema of the JSON result is identical.
searx.engines.peertube.fetch_traits | ( | EngineTraits | engine_traits | ) |
Fetch languages from peertube's search-index source code. See videoLanguages_ in commit `8ed5c729 - Refactor and redesign client`_ .. _8ed5c729 - Refactor and redesign client: https://framagit.org/framasoft/peertube/search-index/-/commit/8ed5c729 .. _videoLanguages: https://framagit.org/framasoft/peertube/search-index/-/commit/8ed5c729#3d8747f9a60695c367c70bb64efba8f403721fad_0_291
Definition at line 139 of file peertube.py.
searx.engines.peertube.minute_to_hm | ( | minute | ) |
Definition at line 53 of file peertube.py.
Referenced by searx.engines.peertube.video_response().
searx.engines.peertube.request | ( | query, | |
params ) |
Assemble request for the Peertube API
Definition at line 59 of file peertube.py.
searx.engines.peertube.response | ( | resp | ) |
Definition at line 96 of file peertube.py.
References searx.engines.peertube.video_response().
searx.engines.peertube.video_response | ( | resp | ) |
Parse video response from SepiaSearch and Peertube instances.
Definition at line 100 of file peertube.py.
References searx.engines.peertube.minute_to_hm().
Referenced by searx.engines.peertube.response().
dict searx.engines.peertube.about |
Definition at line 22 of file peertube.py.
str searx.engines.peertube.base_url = "https://peer.tube" |
Definition at line 35 of file peertube.py.
list searx.engines.peertube.categories = ["videos"] |
Definition at line 33 of file peertube.py.
bool searx.engines.peertube.paging = True |
Definition at line 34 of file peertube.py.
bool searx.engines.peertube.safesearch = True |
Definition at line 49 of file peertube.py.
dict searx.engines.peertube.safesearch_table = {0: 'both', 1: 'false', 2: 'false'} |
Definition at line 50 of file peertube.py.
bool searx.engines.peertube.time_range_support = True |
Definition at line 41 of file peertube.py.
dict searx.engines.peertube.time_range_table |
Definition at line 42 of file peertube.py.