feat(manifests): extend merge_segments rolling merge to HLS and ISM

RollingMerge takes the segment path and an append hook. ISM synthesises the init from segment 0 and converts PIFF per fragment; HLS qualifies only with one init, one key and no discontinuity. Both parsers check the merge reached every segment, and resume is decided per track.
This commit is contained in:
imSp4rky
2026-09-21 20:53:37 -06:00
parent 79d109d548
commit 6e681af513
8 changed files with 477 additions and 86 deletions
+1 -3
View File
@@ -619,9 +619,7 @@ class Track:
else:
save_dir = save_path.parent
keep_segments = (
config.continue_downloads and not config.merge_segments and self.descriptor != self.Descriptor.URL
)
keep_segments = config.continue_downloads and self.descriptor != self.Descriptor.URL
def cleanup() -> None:
save_path.unlink(missing_ok=True)