mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +00:00 
			
		
		
		
	[extractor/common] Relax JSON-LD context check (closes #16006)
This commit is contained in:
		| @@ -1025,7 +1025,7 @@ class InfoExtractor(object): | |||||||
|             }) |             }) | ||||||
|  |  | ||||||
|         for e in json_ld: |         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') |                 item_type = e.get('@type') | ||||||
|                 if expected_type is not None and expected_type != item_type: |                 if expected_type is not None and expected_type != item_type: | ||||||
|                     return info |                     return info | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 aeph6Ee0
					aeph6Ee0