mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-04 10:27:07 -05:00 
			
		
		
		
	[youtube] Make category optional (#4442)
This commit is contained in:
		@@ -866,7 +866,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor, SubtitlesInfoExtractor):
 | 
			
		||||
 | 
			
		||||
        m_cat_container = self._search_regex(
 | 
			
		||||
            r'(?s)<h4[^>]*>\s*Category\s*</h4>\s*<ul[^>]*>(.*?)</ul>',
 | 
			
		||||
            video_webpage, 'categories', fatal=False)
 | 
			
		||||
            video_webpage, 'categories', default=None)
 | 
			
		||||
        if m_cat_container:
 | 
			
		||||
            category = self._html_search_regex(
 | 
			
		||||
                r'(?s)<a[^<]+>(.*?)</a>', m_cat_container, 'category',
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user