mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-29 04:15:09 +00:00
feat(dl): warn when the temp volume cannot hold the HLS tracks of a title
This commit is contained in:
@@ -311,7 +311,9 @@ 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. A full disk during the mux gives a line like `mkvmerge failed (exit 2): An exception occurred when writing the destination file. The drive may be full. ..., 38.0 MB free on C:\unshackle\temp`.
|
||||
|
||||
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.
|
||||
Before or during the track downloads, 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.
|
||||
|
||||
For a DASH or ISM track, the estimate is the manifest bitrate multiplied by the playing time, and unshackle checks before the downloads start. An HLS track has no playing time until unshackle reads its media playlist, so unshackle adds its estimate when the playlist is read, before the segments of that track download. The HLS estimate is the sum of the byte ranges when each segment has one, else the bitrate multiplied by the segment durations. An HLS video bitrate includes the audio, so the warning can come early when the free space is near the estimate. A URL track gives no estimate. You get one warning for each title at most. 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`.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user