This commit is contained in:
nose
2025-12-21 16:59:37 -08:00
parent 11a13edb84
commit d0b821b5dd
7 changed files with 508 additions and 136 deletions

View File

@@ -257,6 +257,10 @@ class YtDlpTool:
if sections:
base_options["download_sections"] = sections
# Clipped outputs should begin with a keyframe; otherwise players (notably mpv)
# can show audio before video or a black screen until the next keyframe.
# yt-dlp implements this by forcing keyframes at cut points.
base_options["force_keyframes_at_cuts"] = True
debug(f"Download sections configured: {', '.join(sections)}")
if opts.playlist_items: