mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-03-09 12:50:23 -05:00
Update yt_dlp/extractor/azmedien.py
Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
This commit is contained in:
parent
12d1138ef1
commit
fc8987f043
1 changed files with 1 additions and 5 deletions
|
@ -59,11 +59,7 @@ def _real_extract(self, url):
|
|||
data = self._search_json(
|
||||
r'window\.__APOLLO_STATE__\s*=', webpage, 'video data', display_id)
|
||||
entry_id = traverse_obj(data, (
|
||||
lambda _, v: v.get('__typename') == 'KalturaData',
|
||||
'kalturaId',
|
||||
), get_all=False)
|
||||
if not entry_id:
|
||||
raise ExtractorError('Could not extract kaltura id')
|
||||
lambda _, v: v['__typename'] == 'KalturaData', 'kalturaId', any, {require('kaltura id')}))
|
||||
|
||||
return self.url_result(
|
||||
f'kaltura:{self._PARTNER_ID}:{entry_id}',
|
||||
|
|
Loading…
Reference in a new issue