From 8ee942a9c8090210d02b9bc866ebc3b5e756cfef Mon Sep 17 00:00:00 2001 From: Elyse <26639800+elyse0@users.noreply.github.com> Date: Sat, 13 May 2023 13:29:28 -0600 Subject: [PATCH] Add warning about --download-sections without --live-from-start --- yt_dlp/extractor/youtube.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/yt_dlp/extractor/youtube.py b/yt_dlp/extractor/youtube.py index ab49a787e..7cd04632b 100644 --- a/yt_dlp/extractor/youtube.py +++ b/yt_dlp/extractor/youtube.py @@ -3843,6 +3843,9 @@ def build_fragments(f): dct['downloader_options'] = {'http_chunk_size': CHUNK_SIZE} yield dct + if live_status == 'is_live' and self.get_param('download_ranges') and not self.get_param('live_from_start'): + self.report_warning('For YT livestreams, --download-sections is only supported with --live-from-start') + needs_live_processing = self._needs_live_processing(live_status, duration) skip_bad_formats = not self._configuration_arg('include_incomplete_formats')