diff options
author | remitamine <remitamine@gmail.com> | 2016-02-02 23:09:50 +0100 |
---|---|---|
committer | remitamine <remitamine@gmail.com> | 2016-02-02 23:09:50 +0100 |
commit | 6ad2b01e14fe22e4607ea16cebbd13b4270505ca (patch) | |
tree | c0386ba22f19bada2e57e4bb998502d7b35fdb02 /youtube_dl/extractor/srgssr.py | |
parent | fd3a1f3d608857ee36b1c5b455bbdbd3dedc17b1 (diff) |
[srgssr] use flv as ext for rtmp formats
Diffstat (limited to 'youtube_dl/extractor/srgssr.py')
-rw-r--r-- | youtube_dl/extractor/srgssr.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/youtube_dl/extractor/srgssr.py b/youtube_dl/extractor/srgssr.py index 4707029ca..246970c4d 100644 --- a/youtube_dl/extractor/srgssr.py +++ b/youtube_dl/extractor/srgssr.py @@ -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) |