mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-29 12:35:13 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user