[extractor/MLBTV] Detect live streams

pull/4875/head
pukkandan 2 years ago
parent 17ffed1842
commit 1015ceeeaf
No known key found for this signature in database
GPG Key ID: 7EEE9E1E817D0A39

@ -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}'},

Loading…
Cancel
Save