Update yt_dlp/extractor/bbc.py

Co-authored-by: dirkf <fieldhouse@gmx.net>
This commit is contained in:
pukkandan 2024-04-27 12:36:52 +05:30 committed by GitHub
parent 8d78a0f118
commit 221a3c6dba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -1359,8 +1359,8 @@ class BBCIE(BBCCoUkIE): # XXX: Do not subclass from concrete IE
'description': strip_or_none(item_desc),
})
for resp in (initial_data.get('data') or {}).values():
name = resp.get('name')
for resp in traverse_obj(initial_data, ('data', lambda _, v: v['name'])):
name = resp['name']
if name == 'media-experience':
parse_media(try_get(resp, lambda x: x['data']['initialItem']['mediaItem'], dict))
elif name == 'article':