feat(dl): warn when the temp volume cannot hold the HLS tracks of a title

This commit is contained in:
imSp4rky
2026-11-28 15:54:41 -07:00
parent 74856d2ddb
commit a80afc4b7e
8 changed files with 264 additions and 41 deletions
+4 -2
View File
@@ -693,6 +693,10 @@ class HLS:
del content[track.sample_slice(starts, window=config.sample)]
unwanted_segments += content
wanted_segments = [seg for seg in master.segments if seg not in unwanted_segments]
if ctx.on_segments:
ctx.on_segments(track, wanted_segments)
# Get session DRM as fallback but prefer media playlist keys for accurate KID matching
if track.drm:
session_drm = track.get_drm_for_cdm(cdm)
@@ -753,8 +757,6 @@ class HLS:
# Downloaded segment files are named by post-filter index; map that back to the wanted
# segment so the IV uses the absolute media sequence number, not the download index.
wanted_segments = [seg for seg in master.segments if seg not in unwanted_segments]
single_init = HLS.single_init_no_rotation(wanted_segments, initial_drm_key, cdm, track.drm_preference)
use_segment_decrypt = (
isinstance(session_drm, (Widevine, PlayReady)) and can_use(session_drm, config.decryption) and single_init