projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92d73ef
)
Try for timestamp, description from window.__INITIAL_DATA__ pages
author
df
<fieldhouse@gmx.net>
Sun, 18 Apr 2021 00:46:40 +0000
(
01:46
+0100)
committer
dirkf
<fieldhouse@gmx.net>
Sat, 5 Feb 2022 02:51:46 +0000
(
02:51
+0000)
youtube_dl/extractor/bbc.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/bbc.py
b/youtube_dl/extractor/bbc.py
index 247d982ce6557419754c739a238a4498ede40ddf..37d427a66c8c39f72b157c1c01eb6a9db0a8f1c3 100644
(file)
--- 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'))