mirror of https://github.com/yt-dlp/yt-dlp.git
Update yt_dlp/extractor/bbc.py
Co-authored-by: dirkf <fieldhouse@gmx.net>
This commit is contained in:
parent
8d78a0f118
commit
221a3c6dba
|
@ -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':
|
||||
|
|
Loading…
Reference in New Issue