1
0
Fork 0
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:
Alexander Seiler 2025-02-21 19:09:38 +01:00 committed by GitHub
parent c5f5f3dcc4
commit 12d1138ef1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -57,8 +57,7 @@ def _real_extract(self, url):
if not entry_id: if not entry_id:
webpage = self._download_webpage(url, display_id) webpage = self._download_webpage(url, display_id)
data = self._search_json( data = self._search_json(
r'window\.__APOLLO_STATE__\s*=', webpage, 'video data', r'window\.__APOLLO_STATE__\s*=', webpage, 'video data', display_id)
display_id)
entry_id = traverse_obj(data, ( entry_id = traverse_obj(data, (
lambda _, v: v.get('__typename') == 'KalturaData', lambda _, v: v.get('__typename') == 'KalturaData',
'kalturaId', 'kalturaId',