mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
[kaltura] Add subtitles support when entry_id is unknown beforehand (Closes #10279)
This commit is contained in:
parent
d8f30a7e66
commit
a809446750
1 changed files with 11 additions and 0 deletions
|
@ -196,6 +196,17 @@ def _real_extract(self, url):
|
||||||
reference_id)['entryResult']
|
reference_id)['entryResult']
|
||||||
info, flavor_assets = entry_data['meta'], entry_data['contextData']['flavorAssets']
|
info, flavor_assets = entry_data['meta'], entry_data['contextData']['flavorAssets']
|
||||||
entry_id = info['id']
|
entry_id = info['id']
|
||||||
|
# Unfortunately, data returned in kalturaIframePackageData lacks
|
||||||
|
# captions so we will try requesting the complete data using
|
||||||
|
# regular approach since we now know the entry_id
|
||||||
|
try:
|
||||||
|
_, info, flavor_assets, captions = self._get_video_info(
|
||||||
|
entry_id, partner_id)
|
||||||
|
except ExtractorError:
|
||||||
|
# Regular scenario failed but we already have everything
|
||||||
|
# extracted apart from captions and can process at least
|
||||||
|
# with this
|
||||||
|
pass
|
||||||
else:
|
else:
|
||||||
raise ExtractorError('Invalid URL', expected=True)
|
raise ExtractorError('Invalid URL', expected=True)
|
||||||
ks = params.get('flashvars[ks]', [None])[0]
|
ks = params.get('flashvars[ks]', [None])[0]
|
||||||
|
|
Loading…
Reference in a new issue