aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/downloader
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2016-04-21 23:02:17 +0600
committerSergey M․ <dstftw@gmail.com>2016-04-21 23:02:17 +0600
commitbf09af3acbafd37e8327b8bab118066bd4c23d31 (patch)
tree071cf417d741ff9b1d648db3a9765fdcf76e826c /youtube_dl/downloader
parent88296ac326694b8da0f6815efbab988ff6134405 (diff)
downloadyoutube-dl-bf09af3acbafd37e8327b8bab118066bd4c23d31.tar.xz
Add --hls-prefer-ffmpeg
Diffstat (limited to 'youtube_dl/downloader')
-rw-r--r--youtube_dl/downloader/__init__.py5
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)