mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
[extractor/common] Relax JSON-LD context check (closes #16006)
This commit is contained in:
parent
717ea4e14e
commit
66b686727b
1 changed files with 1 additions and 1 deletions
|
@ -1025,7 +1025,7 @@ def extract_video_object(e):
|
|||
})
|
||||
|
||||
for e in json_ld:
|
||||
if e.get('@context') == 'http://schema.org':
|
||||
if isinstance(e.get('@context'), compat_str) and re.match(r'^https?://schema.org/?$', e.get('@context')):
|
||||
item_type = e.get('@type')
|
||||
if expected_type is not None and expected_type != item_type:
|
||||
return info
|
||||
|
|
Loading…
Reference in a new issue