diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-08-07 11:32:15 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-08-07 12:47:54 +0530 |
commit | 57015a4a3f15b23c152ffd2d72ed9ef520664ee5 (patch) | |
tree | ff74f30f6dd758c2ee6ff727fa3c6566f9809066 /yt_dlp/extractor/youtube.py | |
parent | 9cc1a3130a5e3f14a989e5d3232c1653aa5bdc3b (diff) | |
download | hypervideo-pre-57015a4a3f15b23c152ffd2d72ed9ef520664ee5.tar.lz hypervideo-pre-57015a4a3f15b23c152ffd2d72ed9ef520664ee5.tar.xz hypervideo-pre-57015a4a3f15b23c152ffd2d72ed9ef520664ee5.zip |
[youtube] extractor-arg to show live dash formats
If replay is enabled, these formats can be used to download the last 4 hours
Diffstat (limited to 'yt_dlp/extractor/youtube.py')
-rw-r--r-- | yt_dlp/extractor/youtube.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/yt_dlp/extractor/youtube.py b/yt_dlp/extractor/youtube.py index 46fa31a73..d5813e288 100644 --- a/yt_dlp/extractor/youtube.py +++ b/yt_dlp/extractor/youtube.py @@ -2628,7 +2628,9 @@ class YoutubeIE(YoutubeBaseInfoExtractor): yield dct skip_manifests = self._configuration_arg('skip') - get_dash = not is_live and 'dash' not in skip_manifests and self.get_param('youtube_include_dash_manifest', True) + get_dash = ( + (not is_live or self._configuration_arg('include_live_dash')) + and 'dash' not in skip_manifests and self.get_param('youtube_include_dash_manifest', True)) get_hls = 'hls' not in skip_manifests and self.get_param('youtube_include_hls_manifest', True) def guess_quality(f): @@ -3458,7 +3460,7 @@ class YoutubeTabIE(YoutubeBaseInfoExtractor): }, { 'url': 'https://www.youtube.com/channel/UCoMdktPbSTixAyNGwb-UYkQ/live', 'info_dict': { - 'id': 'FMtPN8yp5LU', # This will keep changing + 'id': '3yImotZU3tw', # This will keep changing 'ext': 'mp4', 'title': compat_str, 'uploader': 'Sky News', |