[downloader/hls] move check for m3u8 live streams to get_suitable_downloader
This commit is contained in:
parent
942b44a052
commit
2bfaf89b6c
2 changed files with 11 additions and 13 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue