[YoutubeDL] Allow bestvideo+bestaudio/best strategy for ted extractor
authorSergey M․ <dstftw@gmail.com>
Mon, 20 Apr 2015 15:58:29 +0000 (21:58 +0600)
committerSergey M․ <dstftw@gmail.com>
Mon, 20 Apr 2015 15:58:29 +0000 (21:58 +0600)
youtube_dl/YoutubeDL.py

index 3bb350e2a9f2442e4018dc75353b40020acbede5..b5fddb8e7ce357ef58d50dba761a233ec17cbcfc 100755 (executable)
@@ -1092,7 +1092,7 @@ class YoutubeDL(object):
         req_format = self.params.get('format')
         if req_format is None:
             req_format_list = []
-            if info_dict['extractor'] == 'youtube' and FFmpegMergerPP(self).available:
+            if info_dict['extractor'] in ['youtube', 'ted'] and FFmpegMergerPP(self).available:
                 req_format_list.append('bestvideo+bestaudio')
             req_format_list.append('best')
             req_format = '/'.join(req_format_list)