-# coding: utf-8
-from __future__ import unicode_literals
-
from .common import InfoExtractor
from ..utils import (
int_or_none,
'upload_date': '20210801',
'timestamp': 1627783200,
'description': 'md5:c66af4a5bc7429dbcc43d15845ff03b3',
+ 'uploader': 'International Olympic Committee',
},
'params': {
- 'format': 'bestvideo',
'skip_download': True,
},
}, {
})
m3u8_url = self._download_json(
f'https://olympics.com/tokenGenerator?url={m3u8_url}', uuid, note='Downloading m3u8 url')
- formats, subtitles = self._extract_m3u8_formats_and_subtitles(m3u8_url, uuid, m3u8_id='hls')
- self._sort_formats(formats)
+ formats, subtitles = self._extract_m3u8_formats_and_subtitles(m3u8_url, uuid, 'mp4', m3u8_id='hls')
return {
'id': uuid,
'title': title,
- 'timestamp': json_ld.get('timestamp'),
- 'description': json_ld.get('description'),
'thumbnails': thumbnails,
- 'duration': json_ld.get('duration'),
'formats': formats,
'subtitles': subtitles,
+ **json_ld
}