mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-30 22:25:19 +00:00 
			
		
		
		
	Move option warnings to YoutubeDL
				
					
				
			Previously, these warnings did not obey `--no-warnings` and did not output colors
This commit is contained in:
		| @@ -474,6 +474,13 @@ class YoutubeDL(object): | ||||
|             if self.params.get('geo_verification_proxy') is None: | ||||
|                 self.params['geo_verification_proxy'] = self.params['cn_verification_proxy'] | ||||
|  | ||||
|         check_deprecated('autonumber_size', '--autonumber-size', 'output template with %(autonumber)0Nd, where N in the number of digits') | ||||
|         check_deprecated('autonumber', '--auto-number', '-o "%(autonumber)s-%(title)s.%(ext)s"') | ||||
|         check_deprecated('usetitle', '--title', '-o "%(title)s-%(id)s.%(ext)s"') | ||||
|  | ||||
|         for msg in self.params.get('warnings', []): | ||||
|             self.report_warning(msg) | ||||
|  | ||||
|         if self.params.get('final_ext'): | ||||
|             if self.params.get('merge_output_format'): | ||||
|                 self.report_warning('--merge-output-format will be ignored since --remux-video or --recode-video is given') | ||||
| @@ -482,10 +489,6 @@ class YoutubeDL(object): | ||||
|         if 'overwrites' in self.params and self.params['overwrites'] is None: | ||||
|             del self.params['overwrites'] | ||||
|  | ||||
|         check_deprecated('autonumber_size', '--autonumber-size', 'output template with %(autonumber)0Nd, where N in the number of digits') | ||||
|         check_deprecated('autonumber', '--auto-number', '-o "%(autonumber)s-%(title)s.%(ext)s"') | ||||
|         check_deprecated('usetitle', '--title', '-o "%(title)s-%(id)s.%(ext)s"') | ||||
|  | ||||
|         if params.get('bidi_workaround', False): | ||||
|             try: | ||||
|                 import pty | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 pukkandan
					pukkandan