[extractor] Extract video inside `Article` json_ld

Closes #2448
pull/2540/head
pukkandan 2 years ago
parent af6793f804
commit 2edb38e8ca
No known key found for this signature in database
GPG Key ID: 0F00D95A001F4698

@ -1528,6 +1528,8 @@ class InfoExtractor(object):
'title': unescapeHTML(e.get('headline')),
'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':
extract_video_object(e)
if expected_type is None:

Loading…
Cancel
Save