mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-11-04 08:35:12 +00:00 
			
		
		
		
	[youtube]: tags key in info jason is now a list
This commit is contained in:
		@@ -1072,9 +1072,8 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
 | 
				
			|||||||
        else:
 | 
					        else:
 | 
				
			||||||
            video_categories = None
 | 
					            video_categories = None
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        m = re.findall(r'''<meta(?:\s+[a-zA-Z0-9:._-]+(?:=[a-zA-Z0-9:._-]+|="[^"]+"|='[^']+'))*?\s+property=['"]?og:video:tag['"]?(?:\s+[a-zA-Z0-9:._-]+(?:=[a-zA-Z0-9:._-]+|="[^"]+"|='[^']+'))*?\s+content=['"]?([^>'"]+?)['"]?\s*>'''
 | 
					        video_tags = re.findall(r'''<meta(?:\s+[a-zA-Z0-9:._-]+(?:=[a-zA-Z0-9:._-]+|="[^"]+"|='[^']+'))*?\s+property=['"]?og:video:tag['"]?(?:\s+[a-zA-Z0-9:._-]+(?:=[a-zA-Z0-9:._-]+|="[^"]+"|='[^']+'))*?\s+content=['"]?([^>'"]+?)['"]?\s*>'''
 | 
				
			||||||
        , video_webpage, re.DOTALL | re.IGNORECASE);
 | 
					        , video_webpage, re.DOTALL | re.IGNORECASE);
 | 
				
			||||||
        video_tags = ", ".join(m)
 | 
					 | 
				
			||||||
        # description
 | 
					        # description
 | 
				
			||||||
        video_description = get_element_by_id("eow-description", video_webpage)
 | 
					        video_description = get_element_by_id("eow-description", video_webpage)
 | 
				
			||||||
        if video_description:
 | 
					        if video_description:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user