mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-11-04 00:25:15 +00:00 
			
		
		
		
	[youtube] Make uploader extraction non fatal (#16444)
This commit is contained in:
		@@ -1697,9 +1697,11 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
 | 
				
			|||||||
        self.report_information_extraction(video_id)
 | 
					        self.report_information_extraction(video_id)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        # uploader
 | 
					        # uploader
 | 
				
			||||||
        if 'author' not in video_info:
 | 
					        video_uploader = try_get(video_info, lambda x: x['author'][0], compat_str)
 | 
				
			||||||
            raise ExtractorError('Unable to extract uploader name')
 | 
					        if video_uploader:
 | 
				
			||||||
        video_uploader = compat_urllib_parse_unquote_plus(video_info['author'][0])
 | 
					            video_uploader = compat_urllib_parse_unquote_plus(video_uploader)
 | 
				
			||||||
 | 
					        else:
 | 
				
			||||||
 | 
					            self._downloader.report_warning('unable to extract uploader name')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        # uploader_id
 | 
					        # uploader_id
 | 
				
			||||||
        video_uploader_id = None
 | 
					        video_uploader_id = None
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user