Skip to content

A feature-rich command-line audio/video downloader

[extractor/MLBTV] Detect live streams

pukkandan1015ceeeaf84
diff --git a/yt_dlp/extractor/mlb.py b/yt_dlp/extractor/mlb.py
index ab0edbae39..5e1b281053 100644
--- a/yt_dlp/extractor/mlb.py
+++ b/yt_dlp/extractor/mlb.py
@@ -343,6 +343,7 @@ class MLBTVIE(InfoExtractor):
return {
'id': video_id,
'title': traverse_obj(airings, (..., 'titles', 0, 'episodeName'), get_all=False),
+ 'is_live': traverse_obj(airings, (..., 'mediaConfig', 'productType'), get_all=False) == 'LIVE',
'formats': formats,
'subtitles': subtitles,
'http_headers': {'Authorization': f'Bearer {self._access_token}'},