mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-03 18:47:06 -05:00 
			
		
		
		
	[extractor/common] Allow quoteless content attribute in og regexes (Closes #7115)
This commit is contained in:
		@@ -645,7 +645,7 @@ class InfoExtractor(object):
 | 
			
		||||
    # Helper functions for extracting OpenGraph info
 | 
			
		||||
    @staticmethod
 | 
			
		||||
    def _og_regexes(prop):
 | 
			
		||||
        content_re = r'content=(?:"([^>]+?)"|\'([^>]+?)\')'
 | 
			
		||||
        content_re = r'content=(?:"([^>]+?)"|\'([^>]+?)\'|\s*([^\s"\'=<>`]+?))'
 | 
			
		||||
        property_re = r'(?:name|property)=[\'"]?og:%s[\'"]?' % re.escape(prop)
 | 
			
		||||
        template = r'<meta[^>]+?%s[^>]+?%s'
 | 
			
		||||
        return [
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user