refactor(temp): read the free space where the failed step deletes its temp files

This commit is contained in:
imSp4rky
2026-11-29 15:23:03 -07:00
parent 977cbe4aa8
commit 1ebc3e3624
13 changed files with 155 additions and 59 deletions
+3 -1
View File
@@ -38,6 +38,7 @@ from unshackle.core.drm.verify import (
)
from unshackle.core.events import events
from unshackle.core.session import MAX_BACKOFF, AnySession, RnetSession, unrecorded, utf8_text
from unshackle.core.temp import low_free_space
from unshackle.core.tracks.segment_store import SegmentStore
from unshackle.core.utilities import language_name, log_event
from unshackle.core.utils import run_proxy
@@ -832,8 +833,9 @@ class Track:
abandon()
progress(downloaded="[yellow]SKIPPED")
return
except (Exception, KeyboardInterrupt):
except (Exception, KeyboardInterrupt) as e:
if not DOWNLOAD_LICENCE_ONLY.is_set():
low_free_space(e)
abandon()
raise