Update yt_dlp/extractor/bbc.py

Co-authored-by: dirkf <fieldhouse@gmx.net>
pull/9705/head
pukkandan 6 months ago committed by GitHub
parent 8d78a0f118
commit 221a3c6dba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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…
Cancel
Save