From a6745124f99f5a93e22fbda5d169bcf4e94eed98 Mon Sep 17 00:00:00 2001 From: Rabin Vincent Date: Wed, 4 Jan 2017 21:20:15 +0100 Subject: [PATCH] [downloader/external] Support MP3 hls in FFmpegFD FFmpegFD forces mpegts or mp4 for m3u8 streams, but if the stream is MP3 we should keep use that format. --- youtube_dl/downloader/external.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/downloader/external.py b/youtube_dl/downloader/external.py index 5d3e5d8d3..b33982631 100644 --- a/youtube_dl/downloader/external.py +++ b/youtube_dl/downloader/external.py @@ -260,7 +260,7 @@ class FFmpegFD(ExternalFD): args += ['-rtmp_live', 'live'] args += ['-i', url, '-c', 'copy'] - if protocol in ('m3u8', 'm3u8_native'): + if protocol in ('m3u8', 'm3u8_native') and info_dict.get('ext') != 'mp3': if self.params.get('hls_use_mpegts', False) or tmpfilename == '-': args += ['-f', 'mpegts'] else: