feat(dash): add merge_segments to append segments during the download

Opt-in rolling merge for DASH video and audio: each contiguous segment is appended to the output as it lands, so the post-download "Merging" stage goes away. Decrypts the init segment eagerly when decrypt_segments is on, disables resume for the track, and skips subtitle tracks.
This commit is contained in:
imSp4rky
2026-09-21 19:13:39 -06:00
parent b182ed97f2
commit 79d109d548
8 changed files with 257 additions and 39 deletions
+3 -1
View File
@@ -619,7 +619,9 @@ class Track:
else:
save_dir = save_path.parent
keep_segments = config.continue_downloads and self.descriptor != self.Descriptor.URL
keep_segments = (
config.continue_downloads and not config.merge_segments and self.descriptor != self.Descriptor.URL
)
def cleanup() -> None:
save_path.unlink(missing_ok=True)