From: df Date: Sun, 18 Apr 2021 00:46:40 +0000 (+0100) Subject: Try for timestamp, description from window.__INITIAL_DATA__ pages X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=6d4932f02347bb1d0228b20798435930022bf316;p=youtube-dl Try for timestamp, description from window.__INITIAL_DATA__ pages --- 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'))