mirror of
				https://github.com/ytdl-org/youtube-dl.git
				synced 2025-10-29 09:26:20 -07:00 
			
		
		
		
	[YoutubeDL] Respect explicit --merge-format-output for uncompatible formats as well
				
					
				
			This commit is contained in:
		| @@ -1390,8 +1390,7 @@ class YoutubeDL(object): | |||||||
|                         return False |                         return False | ||||||
|  |  | ||||||
|                     requested_formats = info_dict['requested_formats'] |                     requested_formats = info_dict['requested_formats'] | ||||||
|                     # Merge incompatible formats into mkv |                     if self.params.get('merge_output_format') is None and not compatible_formats(requested_formats): | ||||||
|                     if not compatible_formats(requested_formats): |  | ||||||
|                         filename = os.path.splitext(filename)[0] + '.mkv' |                         filename = os.path.splitext(filename)[0] + '.mkv' | ||||||
|                         self.report_warning('You have requested formats uncompatible for merge. ' |                         self.report_warning('You have requested formats uncompatible for merge. ' | ||||||
|                                             'The formats will be merged into mkv') |                                             'The formats will be merged into mkv') | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user