Try for timestamp, description from window.__INITIAL_DATA__ pages
authordf <fieldhouse@gmx.net>
Sun, 18 Apr 2021 00:46:40 +0000 (01:46 +0100)
committerdirkf <fieldhouse@gmx.net>
Sat, 5 Feb 2022 02:51:46 +0000 (02:51 +0000)
youtube_dl/extractor/bbc.py

index 247d982ce6557419754c739a238a4498ede40ddf..37d427a66c8c39f72b157c1c01eb6a9db0a8f1c3 100644 (file)
@@ -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'))