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