From fc8987f04369da0c6eb4bbe715163a62ab733d1a Mon Sep 17 00:00:00 2001 From: Alexander Seiler Date: Fri, 21 Feb 2025 19:10:09 +0100 Subject: [PATCH] Update yt_dlp/extractor/azmedien.py Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com> --- yt_dlp/extractor/azmedien.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/yt_dlp/extractor/azmedien.py b/yt_dlp/extractor/azmedien.py index 3db2c5161..5d02e9bfb 100644 --- a/yt_dlp/extractor/azmedien.py +++ b/yt_dlp/extractor/azmedien.py @@ -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}',