[fix] invidious engine: store random base_url in param
Two different threads ( = two different user queries) can call the request function in a row and then the response function. The namespace will be same since this is the same engine. To keep exactly the same value ``base_url`` must be stored in params and then retrieve using ``resp.search_params["base_url"]``. Suggested-by: @dalf https://github.com/searxng/searxng/pull/862#discussion_r799324861 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
@@ -786,11 +786,11 @@ engines:
|
||||
# Instanes will be selected randomly, see https://api.invidious.io/ for
|
||||
# instances that are stable (good uptime) and close to you.
|
||||
base_url:
|
||||
- https://invidious.snopyta.org/
|
||||
- https://vid.puffyan.us/
|
||||
- https://invidious.kavin.rocks/
|
||||
- https://invidio.xamh.de/
|
||||
- https://inv.riverside.rocks/
|
||||
- https://invidious.snopyta.org
|
||||
- https://vid.puffyan.us
|
||||
# - https://invidious.kavin.rocks # Error 1020 // Access denied by Cloudflare
|
||||
- https://invidio.xamh.de
|
||||
- https://inv.riverside.rocks
|
||||
shortcut: iv
|
||||
timeout: 3.0
|
||||
disabled: true
|
||||
|
||||
Reference in New Issue
Block a user