From 2313b972a38170df5421839b911f942cb8ea4af3 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Sun, 23 Nov 2025 12:33:16 +0100 Subject: [fix] engines: base URL can be a list or a string, but its not None! The code injection and monkey patching examine the names in the module of the engine; if a variable there starts without an underscore and has the value None, then this variable needs to be configured. This outdated concept does not fit engines that may have multiple URLs. At least not as long as the value of the base URL (list) is None. The default is now an empty list instead of None Signed-off-by: Markus Heiser --- searx/engines/invidious.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'searx/engines/invidious.py') diff --git a/searx/engines/invidious.py b/searx/engines/invidious.py index 817c1d4ab..c62143ffc 100644 --- a/searx/engines/invidious.py +++ b/searx/engines/invidious.py @@ -31,7 +31,7 @@ paging = True time_range_support = True # base_url can be overwritten by a list of URLs in the settings.yml -base_url: list | str = [] +base_url: list[str] | str = [] def init(_): -- cgit v1.2.3