mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 06:35:12 +00:00 
			
		
		
		
	[cleanup, utils] Don't use kwargs for format_field
				
					
				
			This commit is contained in:
		| @@ -1050,7 +1050,7 @@ class InfoExtractor: | ||||
|                 self._sleep(timeout, video_id) | ||||
| 
 | ||||
|     def report_warning(self, msg, video_id=None, *args, only_once=False, **kwargs): | ||||
|         idstr = format_field(video_id, template='%s: ') | ||||
|         idstr = format_field(video_id, None, '%s: ') | ||||
|         msg = f'[{self.IE_NAME}] {idstr}{msg}' | ||||
|         if only_once: | ||||
|             if f'WARNING: {msg}' in self._printed_messages: | ||||
| @@ -1096,7 +1096,7 @@ class InfoExtractor: | ||||
|                 self.get_param('ignore_no_formats_error') or self.get_param('wait_for_video')): | ||||
|             self.report_warning(msg) | ||||
|             return | ||||
|         msg += format_field(self._login_hint(method), template='. %s') | ||||
|         msg += format_field(self._login_hint(method), None, '. %s') | ||||
|         raise ExtractorError(msg, expected=True) | ||||
| 
 | ||||
|     def raise_geo_restricted( | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 pukkandan
					pukkandan