mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-12-22 08:47:41 +00:00
[srgssr] use flv as ext for rtmp formats
This commit is contained in:
parent
fd3a1f3d60
commit
6ad2b01e14
1 changed files with 1 additions and 4 deletions
|
@ -70,14 +70,11 @@ class SRGSSRIE(InfoExtractor):
|
|||
asset_url, media_id, 'mp4', 'm3u8_native',
|
||||
m3u8_id=format_id, fatal=False))
|
||||
else:
|
||||
ext = None
|
||||
if protocol == 'RTMP':
|
||||
ext = self._search_regex(r'([a-z0-9]+):[^/]+', asset_url, 'ext')
|
||||
formats.append({
|
||||
'format_id': format_id,
|
||||
'url': asset_url,
|
||||
'preference': preference(quality),
|
||||
'ext': ext,
|
||||
'ext': 'flv' if protocol == 'RTMP' else None,
|
||||
})
|
||||
self._sort_formats(formats)
|
||||
|
||||
|
|
Loading…
Reference in a new issue