mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-03 18:12:58 +01:00
parent
4862a29854
commit
0d174e8bed
@ -110,10 +110,12 @@ def _real_extract(self, url):
|
|||||||
'ie_key': KalturaIE.ie_key(),
|
'ie_key': KalturaIE.ie_key(),
|
||||||
}
|
}
|
||||||
else:
|
else:
|
||||||
|
formats, subs = self._extract_m3u8_formats_and_subtitles(
|
||||||
|
video_data['data']['ongoing_ondemand']['manifest_url'], video_id, 'mp4', m3u8_id='hls')
|
||||||
|
self._merge_subtitles(subs, target=subtitles)
|
||||||
info_dict = {
|
info_dict = {
|
||||||
'id': video_id,
|
'id': video_id,
|
||||||
'formats': self._extract_m3u8_formats(
|
'formats': formats,
|
||||||
video_data['data']['ongoing_ondemand']['manifest_url'], video_id, 'mp4', m3u8_id='hls'),
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
@ -129,6 +131,6 @@ def _real_extract(self, url):
|
|||||||
or int_or_none(episode_number)),
|
or int_or_none(episode_number)),
|
||||||
'thumbnails': traverse_obj(info, ('thumbnails', ..., {'url': 'url'})),
|
'thumbnails': traverse_obj(info, ('thumbnails', ..., {'url': 'url'})),
|
||||||
'age_limit': traverse_obj(video_data, ('data', 'ongoing_ondemand', 'content_rating', 'age_restriction'), expected_type=int_or_none),
|
'age_limit': traverse_obj(video_data, ('data', 'ongoing_ondemand', 'content_rating', 'age_restriction'), expected_type=int_or_none),
|
||||||
'subtitles': subtitles,
|
'subtitles': subtitles or None,
|
||||||
'release_date': unified_strdate(traverse_obj(video_data, ('data', 'ongoing_ondemand', 'start_time'), expected_type=str)),
|
'release_date': unified_strdate(traverse_obj(video_data, ('data', 'ongoing_ondemand', 'start_time'), expected_type=str)),
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user