[downloader/hls] move check for m3u8 live streams to get_suitable_downloader

This commit is contained in:
Remita Amine 2017-03-25 23:06:33 +01:00
parent 942b44a052
commit 2bfaf89b6c
2 changed files with 11 additions and 13 deletions

View file

@ -43,6 +43,9 @@ def get_suitable_downloader(info_dict, params={}):
if ed.can_download(info_dict):
return ed
if protocol.startswith('m3u8') and info_dict.get('is_live'):
return FFmpegFD
if protocol == 'm3u8' and params.get('hls_prefer_native') is True:
return HlsFD