.oO SearXNG Developer Documentation Oo.
|
Functions | |
absolute_url (relative_url) | |
init (_) | |
request (query, params) | |
EngineResults | response (resp) |
None | video_response (resp, EngineResults results) |
Variables | |
dict | about |
list | categories = ["videos"] |
bool | paging = True |
str | base_url = "" |
str | ta_token = "" |
bool | ta_link_to_mp4 = False |
`Tube Archivist`_ - *Your self hosted YouTube media server.* .. _Tube Archivist: https://www.tubearchivist.com This engine connects with a self-hosted instance of `Tube Archivist`_ to allow searching for your hosted videos. `Tube Archivist`_ (TA) requires authentication for all image loads via cookie authentication. What this means is that by default, SearXNG will have no way to pull images from TA (as there is no way to pass cookies in a URL string only). In the meantime while work is done on the TA side, this can be worked around by bypassing auth for images in TA by altering the default TA nginx file. This is located in the main tubearchivist docker container at:: /etc/nginx/sites-available/default It is **strongly** recommended first setting up the intial connection and verying searching works first with broken images, and then attempting this change. This will limit any debugging to only images, rather than tokens/networking. Steps to enable **unauthenticated** metadata access for channels and videos: #. Perform any backups of TA before editing core configurations. #. Copy the contents of the file ``/etc/nginx/sites-available/default`` in the TA docker container #. Edit ``location /cache/videos`` and ``location /cache/channels``. Comment out the line ``auth_request /api/ping/;`` to ``# auth_request /api/ping/;``. #. Save the file to wherever you normally store your docker configuration. #. Mount this new configuration over the default configuration. With ``docker run``, this would be:: -v ./your-new-config.yml:/etc/nginx/sites-available/default With ``docker compose``, this would be:: - "./your-new-config.yml:/etc/nginx/sites-available/default:ro" #. Start the TA container. After these steps, double check that TA works as normal (nothing should be different on the TA side). Searching again should now show images. Configuration ============= The engine has the following required settings: - :py:obj:`base_url` - :py:obj:`ta_token` Optional settings: - :py:obj:`ta_link_to_mp4` .. code:: yaml - name: tubearchivist engine: tubearchivist shortcut: tuba base_url: ta_token: ta_link_to_mp4: true Implementations ===============
searx.engines.tubearchivist.absolute_url | ( | relative_url | ) |
Definition at line 115 of file tubearchivist.py.
Referenced by video_response().
searx.engines.tubearchivist.init | ( | _ | ) |
Definition at line 119 of file tubearchivist.py.
searx.engines.tubearchivist.request | ( | query, | |
params ) |
Definition at line 126 of file tubearchivist.py.
EngineResults searx.engines.tubearchivist.response | ( | resp | ) |
Definition at line 137 of file tubearchivist.py.
References video_response().
None searx.engines.tubearchivist.video_response | ( | resp, | |
EngineResults | results ) |
Parse video response from Tubearchivist instances.
Definition at line 143 of file tubearchivist.py.
References absolute_url().
Referenced by response().
dict searx.engines.tubearchivist.about |
Definition at line 84 of file tubearchivist.py.
str searx.engines.tubearchivist.base_url = "" |
Definition at line 97 of file tubearchivist.py.
list searx.engines.tubearchivist.categories = ["videos"] |
Definition at line 94 of file tubearchivist.py.
bool searx.engines.tubearchivist.paging = True |
Definition at line 95 of file tubearchivist.py.
bool searx.engines.tubearchivist.ta_link_to_mp4 = False |
Definition at line 109 of file tubearchivist.py.
str searx.engines.tubearchivist.ta_token = "" |
Definition at line 101 of file tubearchivist.py.