瀏覽代碼

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

Remita Amine 6 年之前
父節點
當前提交
f28363ad1f
共有 1 個文件被更改,包括 2 次插入0 次删除
  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'),
                     'format_id': m3u8_format['format_id'].replace('hls', 'http'),
                     'protocol': 'http',
                     'protocol': 'http',
                 })
                 })
+                if f.get('acodec') == 'none':
+                    del f['acodec']
                 formats.append(f)
                 formats.append(f)
 
 
         audio_download = talk_info.get('audioDownload')
         audio_download = talk_info.get('audioDownload')