1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-11-28 04:15:16 +00:00

[extractor/MLBTV] Detect live streams

This commit is contained in:
pukkandan
2022-09-08 06:18:35 +05:30
parent 17ffed1842
commit 1015ceeeaf

View File

@@ -343,6 +343,7 @@ class MLBTVIE(InfoExtractor):
return { return {
'id': video_id, 'id': video_id,
'title': traverse_obj(airings, (..., 'titles', 0, 'episodeName'), get_all=False), 'title': traverse_obj(airings, (..., 'titles', 0, 'episodeName'), get_all=False),
'is_live': traverse_obj(airings, (..., 'mediaConfig', 'productType'), get_all=False) == 'LIVE',
'formats': formats, 'formats': formats,
'subtitles': subtitles, 'subtitles': subtitles,
'http_headers': {'Authorization': f'Bearer {self._access_token}'}, 'http_headers': {'Authorization': f'Bearer {self._access_token}'},