0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-22 02:15:12 +00:00

[generic] Detect more json_ld

Closes #1475
This commit is contained in:
pukkandan 2021-10-30 02:03:53 +05:30
parent 5e7bbac305
commit fa0b816e37
No known key found for this signature in database
GPG key ID: 0F00D95A001F4698

View file

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