mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-04 04:17:16 -05:00
parent
af6793f804
commit
2edb38e8ca
1 changed files with 2 additions and 0 deletions
|
@ -1528,6 +1528,8 @@ def traverse_json_ld(json_ld, at_top_level=True):
|
||||||
'title': unescapeHTML(e.get('headline')),
|
'title': unescapeHTML(e.get('headline')),
|
||||||
'description': unescapeHTML(e.get('articleBody') or e.get('description')),
|
'description': unescapeHTML(e.get('articleBody') or e.get('description')),
|
||||||
})
|
})
|
||||||
|
if traverse_obj(e, ('video', 0, '@type')) == 'VideoObject':
|
||||||
|
extract_video_object(e['video'][0])
|
||||||
elif item_type == 'VideoObject':
|
elif item_type == 'VideoObject':
|
||||||
extract_video_object(e)
|
extract_video_object(e)
|
||||||
if expected_type is None:
|
if expected_type is None:
|
||||||
|
|
Loading…
Reference in a new issue