[downloader] Add --hls-prefer-native to use the native HLS downloader (#4966)

This commit is contained in:
Philipp Hagemeister 2015-02-17 12:09:12 +01:00
parent 1db5fbcfe3
commit 85729c51af
4 changed files with 12 additions and 1 deletions

View file

@ -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)