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] tagesschau: crash if there's no video stream available
Bnyro25c327904a14
diff --git a/searx/engines/tagesschau.py b/searx/engines/tagesschau.pyindex aa3df6f06..6164d02fd 100644--- a/searx/engines/tagesschau.py+++ b/searx/engines/tagesschau.py@@ -101,6 +101,9 @@ def _video(item):title = title.replace("_vapp.mxf", "")title = re.sub(r"APP\d+ (FC-)?", "", title, count=1)+ # sometimes, only adaptive m3u8 streams are available, so video_url is None+ url = video_url or f"{base_url}/multimedia/video/{item['sophoraId']}.html"+return {'template': 'videos.html','title': title,@@ -108,5 +111,5 @@ def _video(item):'publishedDate': datetime.strptime(item['date'][:19], '%Y-%m-%dT%H:%M:%S'),'content': item.get('firstSentence', ''),'iframe_src': video_url,- 'url': video_url,+ 'url': url,}