[generic] Detect more json_ld

Closes #1475
pull/1474/merge
pukkandan 3 years ago
parent 5e7bbac305
commit fa0b816e37
No known key found for this signature in database
GPG Key ID: 0F00D95A001F4698

@ -3583,8 +3583,7 @@ class GenericIE(InfoExtractor):
return info_dict return info_dict
# Looking for http://schema.org/VideoObject # Looking for http://schema.org/VideoObject
json_ld = self._search_json_ld( json_ld = self._search_json_ld(webpage, video_id, default={})
webpage, video_id, default={}, expected_type='VideoObject')
if json_ld.get('url'): if json_ld.get('url'):
return merge_dicts(json_ld, info_dict) return merge_dicts(json_ld, info_dict)

Loading…
Cancel
Save