feat(tracks): resume segment decryption and rolling merge through the segment store

This commit is contained in:
imSp4rky
2026-11-28 22:09:44 -07:00
parent f4d178c26b
commit 82991dd823
26 changed files with 1125 additions and 186 deletions
+5 -2
View File
@@ -776,10 +776,13 @@ class Track:
store = SegmentStore(self, save_dir)
def abandon() -> None:
"""Remove the output of a failed or cancelled download; a cleanup error must not replace its error."""
"""Stash or remove the output of a failed or cancelled download.
A cleanup error must not replace the error of the download.
"""
store.abandon()
with contextlib.suppress(OSError):
save_path.unlink(missing_ok=True)
store.abandon()
if not DOWNLOAD_LICENCE_ONLY.is_set():
if config.directories.temp.is_file():