diff options
author | Sergey M․ <dstftw@gmail.com> | 2016-04-21 23:02:17 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2016-04-21 23:02:17 +0600 |
commit | bf09af3acbafd37e8327b8bab118066bd4c23d31 (patch) | |
tree | 071cf417d741ff9b1d648db3a9765fdcf76e826c /youtube_dl/downloader | |
parent | 88296ac326694b8da0f6815efbab988ff6134405 (diff) |
Add --hls-prefer-ffmpeg
Diffstat (limited to 'youtube_dl/downloader')
-rw-r--r-- | youtube_dl/downloader/__init__.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/youtube_dl/downloader/__init__.py b/youtube_dl/downloader/__init__.py index 73b34fdae..817591d97 100644 --- a/youtube_dl/downloader/__init__.py +++ b/youtube_dl/downloader/__init__.py @@ -41,9 +41,12 @@ def get_suitable_downloader(info_dict, params={}): if ed.can_download(info_dict): return ed - if protocol == 'm3u8' and params.get('hls_prefer_native'): + if protocol == 'm3u8' and params.get('hls_prefer_native') is True: return HlsFD + if protocol == 'm3u8_native' and params.get('hls_prefer_native') is False: + return FFmpegFD + return PROTOCOL_MAP.get(protocol, HttpFD) |