From fbae888c658ded378a1a319b13c8354e116ca842 Mon Sep 17 00:00:00 2001 From: Elyse <26639800+elyse0@users.noreply.github.com> Date: Sat, 11 Mar 2023 18:26:09 -0600 Subject: [PATCH] Add debug for selected section --- yt_dlp/extractor/youtube.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/yt_dlp/extractor/youtube.py b/yt_dlp/extractor/youtube.py index 84e42af74..ad6203936 100644 --- a/yt_dlp/extractor/youtube.py +++ b/yt_dlp/extractor/youtube.py @@ -2768,6 +2768,8 @@ def _live_dash_fragments(self, video_id, format_id, live_start_time, mpd_feed, m section_start = 0 if ctx.get('section_start') is None else download_start_time + ctx['section_start'] section_end = math.inf if ctx.get('section_end') is None else download_start_time + ctx['section_end'] + self.write_debug(f'Selected section: {section_start} -> {section_end}') + lack_early_segments = download_start_time - (live_start_time or download_start_time) > MAX_DURATION if lack_early_segments: self.report_warning(bug_reports_message(