mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
[vessel] Extract DASH formats
This commit is contained in:
parent
a479b8f687
commit
39da509f67
1 changed files with 6 additions and 2 deletions
|
@ -111,13 +111,17 @@ def _real_extract(self, url):
|
||||||
location = f.get('location')
|
location = f.get('location')
|
||||||
if not location:
|
if not location:
|
||||||
continue
|
continue
|
||||||
if f.get('name') == 'hls-index':
|
name = f.get('name')
|
||||||
|
if name == 'hls-index':
|
||||||
formats.extend(self._extract_m3u8_formats(
|
formats.extend(self._extract_m3u8_formats(
|
||||||
location, video_id, ext='mp4',
|
location, video_id, ext='mp4',
|
||||||
entry_protocol='m3u8_native', m3u8_id='m3u8'))
|
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:
|
else:
|
||||||
formats.append({
|
formats.append({
|
||||||
'format_id': f.get('name'),
|
'format_id': name,
|
||||||
'tbr': f.get('bitrate'),
|
'tbr': f.get('bitrate'),
|
||||||
'height': f.get('height'),
|
'height': f.get('height'),
|
||||||
'width': f.get('width'),
|
'width': f.get('width'),
|
||||||
|
|
Loading…
Reference in a new issue