aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/downloader
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2015-02-17 12:09:12 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2015-02-17 12:09:12 +0100
commit85729c51afad484ef784faf5d82bad8acab77d5e (patch)
treed556af4c7f9fbfaf67cfc7cb3acc1cabc845dc86 /youtube_dl/downloader
parent1db5fbcfe3ef95654aa642ebe483fb070852cb49 (diff)
[downloader] Add --hls-prefer-native to use the native HLS downloader (#4966)
Diffstat (limited to 'youtube_dl/downloader')
-rw-r--r--youtube_dl/downloader/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/youtube_dl/downloader/__init__.py b/youtube_dl/downloader/__init__.py
index eff1122c5..9fb66e2f7 100644
--- a/youtube_dl/downloader/__init__.py
+++ b/youtube_dl/downloader/__init__.py
@@ -34,6 +34,9 @@ def get_suitable_downloader(info_dict, params={}):
if ed.supports(info_dict):
return ed
+ if protocol == 'm3u8' and params.get('hls_prefer_native'):
+ return NativeHlsFD
+
return PROTOCOL_MAP.get(protocol, HttpFD)