Change the mkv warning into an info

Because there are so many issues with this warning, and that it works just
fine, this turns the warning about merging into an mkv to an informational
message.

It is also about not crying wolf when there is nothing to worry about.
This commit is contained in:
Max Nordlund 2016-08-05 20:33:09 +02:00 committed by GitHub
parent 491c42e690
commit e27932d61f

View File

@ -1659,8 +1659,8 @@ class YoutubeDL(object):
requested_formats = info_dict['requested_formats'] requested_formats = info_dict['requested_formats']
if self.params.get('merge_output_format') is None and not compatible_formats(requested_formats): if self.params.get('merge_output_format') is None and not compatible_formats(requested_formats):
info_dict['ext'] = 'mkv' info_dict['ext'] = 'mkv'
self.report_warning( self.to_screen(
'Requested formats are incompatible for merge and will be merged into mkv.') '[info] Requested formats are incompatible for merge and will be merged into mkv.')
# Ensure filename always has a correct extension for successful merge # Ensure filename always has a correct extension for successful merge
filename = '%s.%s' % (filename_wo_ext, info_dict['ext']) filename = '%s.%s' % (filename_wo_ext, info_dict['ext'])
if os.path.exists(encodeFilename(filename)): if os.path.exists(encodeFilename(filename)):