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
[fix] presearch engine: Unexpected crash if duration not in videos
Aadnizecee73eafd69
diff --git a/searx/engines/presearch.py b/searx/engines/presearch.pyindex 7e30801d1..034233163 100644--- a/searx/engines/presearch.py+++ b/searx/engines/presearch.py@@ -264,13 +264,17 @@ def response(resp):# a video and not to a video stream --> SearXNG can't use the video template.for item in json_resp.get('videos', []):+ duration = item.get('duration')+ if duration:+ duration = parse_duration_string(duration)+results.append({'title': html_to_text(item['title']),'url': item.get('link'),'content': item.get('description', ''),'thumbnail': item.get('image'),- 'length': parse_duration_string(item.get('duration')),+ 'length': duration,})