forked from kenzuya/unshackle
feat(tracks): resume segment decryption and rolling merge through the segment store
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user