mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-27 02:42:30 +00:00
parent
635ae31f68
commit
20c3c9b433
@ -319,16 +319,20 @@ def add_thumbnail(src):
|
|||||||
'format_id': 'fallback',
|
'format_id': 'fallback',
|
||||||
'format_note': 'DASH video, mp4_dash',
|
'format_note': 'DASH video, mp4_dash',
|
||||||
}]
|
}]
|
||||||
formats.extend(self._extract_m3u8_formats(
|
hls_fmts, subtitles = self._extract_m3u8_formats_and_subtitles(
|
||||||
hls_playlist_url, display_id, 'mp4', m3u8_id='hls', fatal=False))
|
hls_playlist_url, display_id, 'mp4', m3u8_id='hls', fatal=False)
|
||||||
formats.extend(self._extract_mpd_formats(
|
formats.extend(hls_fmts)
|
||||||
dash_playlist_url, display_id, mpd_id='dash', fatal=False))
|
dash_fmts, dash_subs = self._extract_mpd_formats_and_subtitles(
|
||||||
|
dash_playlist_url, display_id, mpd_id='dash', fatal=False)
|
||||||
|
formats.extend(dash_fmts)
|
||||||
|
self._merge_subtitles(dash_subs, target=subtitles)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
**info,
|
**info,
|
||||||
'id': video_id,
|
'id': video_id,
|
||||||
'display_id': display_id,
|
'display_id': display_id,
|
||||||
'formats': formats,
|
'formats': formats,
|
||||||
|
'subtitles': subtitles,
|
||||||
'duration': int_or_none(reddit_video.get('duration')),
|
'duration': int_or_none(reddit_video.get('duration')),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user