diff options
author | Jinyuan Huang <88757735+BernieHuang2008@users.noreply.github.com> | 2023-12-27 13:50:56 +0000 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarIT.de> | 2024-01-16 15:29:09 +0100 |
commit | 9c5f9735cf3afd1a7e7a2f873f200fd2cdb28390 (patch) | |
tree | 114c681f01fb3bc5988d6ce20c5a4b7005f67355 /searx/engines/google_videos.py | |
parent | 8762863ebfe7b00d4d07dde24e69112e9a605079 (diff) | |
download | searxng-9c5f9735cf3afd1a7e7a2f873f200fd2cdb28390.tar.gz searxng-9c5f9735cf3afd1a7e7a2f873f200fd2cdb28390.zip |
[fix] engine: safesearch parameter in Google Videos engine (#2762)
Closes: https://github.com/searxng/searxng/issues/2762
Diffstat (limited to 'searx/engines/google_videos.py')
-rw-r--r-- | searx/engines/google_videos.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |