projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd3a1f3
)
[srgssr] use flv as ext for rtmp formats
author
remitamine
<remitamine@gmail.com>
Tue, 2 Feb 2016 22:09:50 +0000
(23:09 +0100)
committer
remitamine
<remitamine@gmail.com>
Tue, 2 Feb 2016 22:09:50 +0000
(23:09 +0100)
youtube_dl/extractor/srgssr.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/srgssr.py
b/youtube_dl/extractor/srgssr.py
index 4707029ca80eb9ce852f8cb7c1a7a1cd5d3612ef..246970c4d98a7d4592deadc1c7744c1504ccefef 100644
(file)
--- 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)