]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[ted] correct acodec for http formats(#18923)
authorRemita Amine <remitamine@gmail.com>
Sat, 19 Jan 2019 20:25:53 +0000 (21:25 +0100)
committerRemita Amine <remitamine@gmail.com>
Sat, 19 Jan 2019 20:25:53 +0000 (21:25 +0100)
youtube_dl/extractor/ted.py

index d3e4205f50472d8ea0a485f25a146e97be558aff..645942dfd369ad7ad6effe0dcfd8ccabde8a9678 100644 (file)
@@ -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')