mirror of
https://github.com/searxng/searxng.git
synced 2024-05-23 13:58:04 +00:00
Merge bcab8ec575
into ecee56533c
This commit is contained in:
commit
7e8055d8dd
|
@ -35,8 +35,13 @@ def response(resp):
|
|||
publishedDate = parser.parse(item['date'])
|
||||
|
||||
iframe_src = None
|
||||
if len(item['recordings']) > 0:
|
||||
iframe_src = item['recordings'][0]['recording_url']
|
||||
for rec in item['recordings']:
|
||||
if rec['mime_type'].startswith('video'):
|
||||
if not iframe_src:
|
||||
iframe_src = rec['recording_url']
|
||||
elif rec['mime_type'] == 'video/mp4':
|
||||
# prefer mp4 (minimal data rates)
|
||||
iframe_src = rec['recording_url']
|
||||
|
||||
results.append(
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue