diff options
author | df <fieldhouse@gmx.net> | 2021-04-18 01:46:40 +0100 |
---|---|---|
committer | dirkf <fieldhouse@gmx.net> | 2022-02-05 02:51:46 +0000 |
commit | 6d4932f02347bb1d0228b20798435930022bf316 (patch) | |
tree | c07be3085de222888e4234dd82092b84a282a1b3 /youtube_dl | |
parent | 92d73ef3936ed6de9770f613fddf2260731becc9 (diff) | |
download | youtube-dl-6d4932f02347bb1d0228b20798435930022bf316.tar.xz |
Try for timestamp, description from window.__INITIAL_DATA__ pages
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/bbc.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/youtube_dl/extractor/bbc.py b/youtube_dl/extractor/bbc.py index 247d982ce..37d427a66 100644 --- a/youtube_dl/extractor/bbc.py +++ b/youtube_dl/extractor/bbc.py @@ -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')) |