From 39a9dc1f6710833f586b541051942bc486f415f9 Mon Sep 17 00:00:00 2001 From: Jinyuan Huang <88757735+BernieHuang2008@users.noreply.github.com> Date: Wed, 27 Dec 2023 13:50:56 +0000 Subject: [PATCH] Fix safesearch parameter in Google Videos engine (#2762) --- searx/engines/google_videos.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searx/engines/google_videos.py b/searx/engines/google_videos.py index 0b1a51115..334358446 100644 --- a/searx/engines/google_videos.py +++ b/searx/engines/google_videos.py @@ -87,7 +87,7 @@ def request(query, params): if params['time_range'] in time_range_dict: query_url += '&' + urlencode({'tbs': 'qdr:' + time_range_dict[params['time_range']]}) - if params['safesearch']: + if 'safesearch' in params: query_url += '&' + urlencode({'safe': filter_mapping[params['safesearch']]}) params['url'] = query_url