aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/downloader/__init__.py
diff options
context:
space:
mode:
authorRemita Amine <remitamine@gmail.com>2017-03-25 23:06:33 +0100
committerRemita Amine <remitamine@gmail.com>2017-03-25 23:07:05 +0100
commit2bfaf89b6cc6dd07ed6ca32086c72a98b67c20ba (patch)
treed235c22dbe6eb6a7d419a1bb400ba476f93b4755 /youtube_dl/downloader/__init__.py
parent942b44a0525f677924c660bcb00902d705d91fc2 (diff)
downloadyoutube-dl-2bfaf89b6cc6dd07ed6ca32086c72a98b67c20ba.tar.xz
[downloader/hls] move check for m3u8 live streams to get_suitable_downloader
Diffstat (limited to 'youtube_dl/downloader/__init__.py')
-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 16952e359..2e485df9d 100644
--- a/youtube_dl/downloader/__init__.py
+++ b/youtube_dl/downloader/__init__.py
@@ -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