From d02115f83727ae0d4f394073235dc97086c64266 Mon Sep 17 00:00:00 2001 From: Andrei Troie Date: Sat, 10 Jan 2015 00:29:06 +0000 Subject: [PATCH] Use the option in preparing the merge output filename --- youtube_dl/YoutubeDL.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py index 24d6c2de7..6d5c401df 100755 --- a/youtube_dl/YoutubeDL.py +++ b/youtube_dl/YoutubeDL.py @@ -912,7 +912,7 @@ def process_video_result(self, info_dict, download=True): selected_format = { 'requested_formats': formats_info, 'format': rf, - 'ext': formats_info[0]['ext'], + 'ext': self.params['merge_output_format'] if self.params['merge_output_format'] is not None else formats_info[0]['ext'], } else: selected_format = None