diff options
author | Sergey M․ <dstftw@gmail.com> | 2016-06-09 04:12:48 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2016-06-09 04:12:48 +0700 |
commit | 39da509f6712b6b0e9d52a9c9e990a5b5cd6c2ac (patch) | |
tree | 00e7d036005952aef41c445c78fed7f1fbabf68e | |
parent | a479b8f687245a9cb1b5c25ed9ece28c4710981f (diff) |
[vessel] Extract DASH formats
-rw-r--r-- | youtube_dl/extractor/vessel.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/youtube_dl/extractor/vessel.py b/youtube_dl/extractor/vessel.py index 59f2b4ba4..c53f44584 100644 --- a/youtube_dl/extractor/vessel.py +++ b/youtube_dl/extractor/vessel.py @@ -111,13 +111,17 @@ class VesselIE(InfoExtractor): location = f.get('location') if not location: continue - if f.get('name') == 'hls-index': + name = f.get('name') + if name == 'hls-index': formats.extend(self._extract_m3u8_formats( location, video_id, ext='mp4', entry_protocol='m3u8_native', m3u8_id='m3u8')) + elif name == 'dash-index': + formats.extend(self._extract_mpd_formats( + location, video_id, mpd_id='dash', fatal=False)) else: formats.append({ - 'format_id': f.get('name'), + 'format_id': name, 'tbr': f.get('bitrate'), 'height': f.get('height'), 'width': f.get('width'), |