feat(dl): warn before the downloads when the temp volume cannot hold the selected tracks

This commit is contained in:
imSp4rky
2026-11-28 15:02:12 -07:00
parent fd1b9254ee
commit 127e8e0dcc
4 changed files with 217 additions and 26 deletions
+2
View File
@@ -311,6 +311,8 @@ Each command reports how many files it removed and how much space it freed, then
!!! example "The temp directory is nearly full"
**Symptom:** the failure line ends with the free space of the temp volume, for example `CalledProcessError: Command '[...]' returned non-zero exit status 2, 38.0 MB free on C:\unshackle\temp`. A tool such as shaka-packager often reports a full disk only as a write failure.
Before the track downloads start, a warning can also show the problem, for example `Temp volume C:\unshackle\temp has 3.1 GB free, the selected tracks need about 9.4 GB`. unshackle gives this warning when the free space is less than two times the estimated size of the video and audio tracks of the title. The factor is two because each encrypted track and its decrypted copy are on the temp volume together. The estimate is the manifest bitrate multiplied by the playing time, so only DASH and ISM tracks get it: an HLS or URL track gives no warning. The warning does not stop the download, and `--skip-dl` and `--sample` runs do not check.
**Inspect:** unshackle adds this part when the volume of `directories.temp` has less than 1 GiB free. Make space on that volume, or set `directories.temp` to a larger volume (see [Directories](../reference/configuration/directories.md)), and run the download again. Over the REST API the job error carries the same line, and a full disk in the downloader gives `DOWNLOAD_ERROR`.
!!! example "The wrong titles/metadata keep coming back"