1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-26 04:02:11 +00:00

[vessel] Extract DASH formats

This commit is contained in:
Sergey M․ 2016-06-09 04:12:48 +07:00
parent a479b8f687
commit 39da509f67
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

@ -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'),