1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-07-23 11:26:40 +00:00

[ie/mlbtv] Make formats downloadable with ffmpeg (#13761)

Authored by: bashonly
This commit is contained in:
bashonly 2025-07-20 14:57:20 -05:00 committed by GitHub
parent 1a8474c3ca
commit 87e3dc8c7f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -457,12 +457,9 @@ mutation initPlaybackSession(
self.report_warning(f'No formats available for {format_id} broadcast; skipping')
return [], {}
cdn_headers = {'x-cdn-token': token}
fmts, subs = self._extract_m3u8_formats_and_subtitles(
m3u8_url.replace(f'/{token}/', '/'), video_id, 'mp4',
m3u8_id=format_id, fatal=False, headers=cdn_headers)
m3u8_url, video_id, 'mp4', m3u8_id=format_id, fatal=False)
for fmt in fmts:
fmt['http_headers'] = cdn_headers
fmt.setdefault('format_note', join_nonempty(feed, medium, delim=' '))
fmt.setdefault('language', language)
if fmt.get('vcodec') == 'none' and fmt['language'] == 'en':