Skip to content

A feature-rich command-line audio/video downloader

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

bashonly87e3dc8c7f78
diff --git a/yt_dlp/extractor/mlb.py b/yt_dlp/extractor/mlb.py
index 562b93fc78..b2b35a7121 100644
--- a/yt_dlp/extractor/mlb.py
+++ b/yt_dlp/extractor/mlb.py
@@ -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':