aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2018-01-14 00:03:22 +0700
committerSergey M․ <dstftw@gmail.com>2018-01-14 00:03:22 +0700
commit391dd6f0946e2dd499147c5f3c6bb13642314515 (patch)
tree64a2387a72302d8012fed287ff3c840790726c94
parent0ce39bc542813462c2d95dc21f1b363c4ae7a1e0 (diff)
downloadyoutube-dl-391dd6f0946e2dd499147c5f3c6bb13642314515.zip
youtube-dl-391dd6f0946e2dd499147c5f3c6bb13642314515.tar.gz
youtube-dl-391dd6f0946e2dd499147c5f3c6bb13642314515.tar.bz2
[youtube] Fix live streams extraction (closes #15202)
-rw-r--r--youtube_dl/extractor/youtube.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py
index 0919bef..a01ec14 100644
--- a/youtube_dl/extractor/youtube.py
+++ b/youtube_dl/extractor/youtube.py
@@ -1810,7 +1810,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
'url': video_info['conn'][0],
'player_url': player_url,
}]
- elif len(video_info.get('url_encoded_fmt_stream_map', [''])[0]) >= 1 or len(video_info.get('adaptive_fmts', [''])[0]) >= 1:
+ elif not is_live and (len(video_info.get('url_encoded_fmt_stream_map', [''])[0]) >= 1 or len(video_info.get('adaptive_fmts', [''])[0]) >= 1):
encoded_url_map = video_info.get('url_encoded_fmt_stream_map', [''])[0] + ',' + video_info.get('adaptive_fmts', [''])[0]
if 'rtmpe%3Dyes' in encoded_url_map:
raise ExtractorError('rtmpe downloads are not supported, see https://github.com/rg3/youtube-dl/issues/343 for more information.', expected=True)