From 1015ceeeaf847bce88b60fe20d08a09ab8ce7d47 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Thu, 8 Sep 2022 06:18:35 +0530 Subject: [PATCH] [extractor/MLBTV] Detect live streams --- yt_dlp/extractor/mlb.py | 1 + 1 file changed, 1 insertion(+) 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 @@ def _real_extract(self, url): 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}'},