[YoutubeDL] Respect explicit `--merge-format-output` for uncompatible formats as...
authorSergey M․ <dstftw@gmail.com>
Sun, 19 Apr 2015 16:33:52 +0000 (22:33 +0600)
committerSergey M․ <dstftw@gmail.com>
Sun, 19 Apr 2015 16:33:52 +0000 (22:33 +0600)
youtube_dl/YoutubeDL.py

index 5dd9d2430406e6fb96ef166989b8c849510856bd..3bb350e2a9f2442e4018dc75353b40020acbede5 100755 (executable)
@@ -1390,8 +1390,7 @@ class YoutubeDL(object):
                         return False
 
                     requested_formats = info_dict['requested_formats']
-                    # Merge incompatible formats into mkv
-                    if not compatible_formats(requested_formats):
+                    if self.params.get('merge_output_format') is None and not compatible_formats(requested_formats):
                         filename = os.path.splitext(filename)[0] + '.mkv'
                         self.report_warning('You have requested formats uncompatible for merge. '
                                             'The formats will be merged into mkv')