mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-07-24 20:04:34 +00:00
[ie/mlbtv] Make formats downloadable with ffmpeg (#13761)
Authored by: bashonly
This commit is contained in:
parent
1a8474c3ca
commit
87e3dc8c7f
@ -457,12 +457,9 @@ mutation initPlaybackSession(
|
|||||||
self.report_warning(f'No formats available for {format_id} broadcast; skipping')
|
self.report_warning(f'No formats available for {format_id} broadcast; skipping')
|
||||||
return [], {}
|
return [], {}
|
||||||
|
|
||||||
cdn_headers = {'x-cdn-token': token}
|
|
||||||
fmts, subs = self._extract_m3u8_formats_and_subtitles(
|
fmts, subs = self._extract_m3u8_formats_and_subtitles(
|
||||||
m3u8_url.replace(f'/{token}/', '/'), video_id, 'mp4',
|
m3u8_url, video_id, 'mp4', m3u8_id=format_id, fatal=False)
|
||||||
m3u8_id=format_id, fatal=False, headers=cdn_headers)
|
|
||||||
for fmt in fmts:
|
for fmt in fmts:
|
||||||
fmt['http_headers'] = cdn_headers
|
|
||||||
fmt.setdefault('format_note', join_nonempty(feed, medium, delim=' '))
|
fmt.setdefault('format_note', join_nonempty(feed, medium, delim=' '))
|
||||||
fmt.setdefault('language', language)
|
fmt.setdefault('language', language)
|
||||||
if fmt.get('vcodec') == 'none' and fmt['language'] == 'en':
|
if fmt.get('vcodec') == 'none' and fmt['language'] == 'en':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user