aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2022-09-08 06:18:35 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2022-09-08 06:18:35 +0530
commit1015ceeeaf847bce88b60fe20d08a09ab8ce7d47 (patch)
tree6ab03e7e6299472b4ea8ea39ef485c922b039068
parent17ffed184237b3686212cc73290e5cdd0f6f20ca (diff)
downloadhypervideo-pre-1015ceeeaf847bce88b60fe20d08a09ab8ce7d47.tar.lz
hypervideo-pre-1015ceeeaf847bce88b60fe20d08a09ab8ce7d47.tar.xz
hypervideo-pre-1015ceeeaf847bce88b60fe20d08a09ab8ce7d47.zip
[extractor/MLBTV] Detect live streams
-rw-r--r--yt_dlp/extractor/mlb.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/yt_dlp/extractor/mlb.py b/yt_dlp/extractor/mlb.py
index ab0edbae3..5e1b28105 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}'},