SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.
Python bingbravedegoogleduckduckgogooglemetasearchprivacypythonqwantsearchsearch-enginesearxsearxngstartpageyahoo
[mod] odysee: time range support
Bnyro09c61dabc992
diff --git a/searx/engines/odysee.py b/searx/engines/odysee.pyindex 514306f61..4b0f49375 100644--- a/searx/engines/odysee.py+++ b/searx/engines/odysee.py@@ -21,6 +21,7 @@ about = {# Engine configurationpaging = True+time_range_support = Trueresults_per_page = 20categories = ['videos']@@ -29,6 +30,13 @@ base_url = "https://lighthouse.odysee.tv/search"def request(query, params):+ time_range_dict = {+ "day": "today",+ "week": "thisweek",+ "month": "thismonth",+ "year": "thisyear",+ }+start_index = (params["pageno"] - 1) * results_per_pagequery_params = {"s": query,@@ -38,6 +46,9 @@ def request(query, params):"mediaType": "video",}+ if params['time_range'] in time_range_dict:+ query_params['time_filter'] = time_range_dict[params['time_range']]+params["url"] = f"{base_url}?{urlencode(query_params)}"return params