Browse Source

[srgssr] use flv as ext for rtmp formats

totalwebcasting
remitamine 9 years ago
parent
commit
6ad2b01e14
1 changed files with 1 additions and 4 deletions
  1. +1
    -4
      youtube_dl/extractor/srgssr.py

+ 1
- 4
youtube_dl/extractor/srgssr.py View File

@ -70,14 +70,11 @@ class SRGSSRIE(InfoExtractor):
asset_url, media_id, 'mp4', 'm3u8_native', asset_url, media_id, 'mp4', 'm3u8_native',
m3u8_id=format_id, fatal=False)) m3u8_id=format_id, fatal=False))
else: else:
ext = None
if protocol == 'RTMP':
ext = self._search_regex(r'([a-z0-9]+):[^/]+', asset_url, 'ext')
formats.append({ formats.append({
'format_id': format_id, 'format_id': format_id,
'url': asset_url, 'url': asset_url,
'preference': preference(quality), 'preference': preference(quality),
'ext': ext,
'ext': 'flv' if protocol == 'RTMP' else None,
}) })
self._sort_formats(formats) self._sort_formats(formats)


Loading…
Cancel
Save