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
+1
View File
@@ -158,6 +158,7 @@ class Config:
self.decryption_map = {}
self.decryption = decryption_cfg or "shaka"
self.decrypt_segments: bool = bool(kwargs.get("decrypt_segments", False))
self.merge_segments: bool = bool(kwargs.get("merge_segments", False))
self.theme: str = kwargs.get("theme") or "default"
self.set_terminal_bg: bool = kwargs.get("set_terminal_bg", False)