Browse Source

[ted] correct acodec for http formats(#18923)

Remita Amine 6 years ago
parent
commit
f28363ad1f
1 changed files with 2 additions and 0 deletions
  1. 2 0
      youtube_dl/extractor/ted.py

+ 2 - 0
youtube_dl/extractor/ted.py

@@ -265,6 +265,8 @@ class TEDIE(InfoExtractor):
                     'format_id': m3u8_format['format_id'].replace('hls', 'http'),
                     'protocol': 'http',
                 })
+                if f.get('acodec') == 'none':
+                    del f['acodec']
                 formats.append(f)
 
         audio_download = talk_info.get('audioDownload')