mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-25 11:41:52 +00:00
Try for timestamp, description from window.__INITIAL_DATA__ pages
This commit is contained in:
parent
92d73ef393
commit
6d4932f023
1 changed files with 4 additions and 1 deletions
|
@ -1205,7 +1205,10 @@ class BBCIE(BBCCoUkIE):
|
|||
if name == 'media-experience':
|
||||
parse_media(try_get(resp, lambda x: x['data']['initialItem']['mediaItem'], dict))
|
||||
elif name == 'article':
|
||||
for block in (try_get(resp, lambda x: x['data']['blocks'], list) or []):
|
||||
for block in (try_get(resp,
|
||||
(lambda x: x['data']['blocks'],
|
||||
lambda x: x['data']['content']['model']['blocks'],),
|
||||
list) or []):
|
||||
if block.get('type') != 'media':
|
||||
continue
|
||||
parse_media(block.get('model'))
|
||||
|
|
Loading…
Reference in a new issue