Add debug for selected section

This commit is contained in:
Elyse 2023-03-11 18:26:09 -06:00
parent cdac7641d6
commit fbae888c65

View File

@ -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(