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
View File
@@ -400,6 +400,8 @@ class DownloadContext:
download_processes: int = 1
license_widevine: Callable | None = None
cdm: object | None = None
on_segments: Callable[["Track", list[Any]], None] | None = None
"""Called by the HLS step with a track and its wanted media segments, before they download."""
def ensure_session(self) -> AnySession:
"""Return the HTTP session, or a new ``Session`` if none was set."""
@@ -727,6 +729,7 @@ class Track:
proxy_download: str | None = None,
adaptive_workers: bool = False,
download_processes: int = 1,
on_segments: Callable[["Track", list[Any]], None] | None = None,
) -> None:
"""Download and optionally Decrypt this Track.
@@ -826,6 +829,7 @@ class Track:
download_processes=download_processes,
license_widevine=prepare_drm,
cdm=cdm,
on_segments=on_segments,
)
if self.descriptor in manifest_parsers:
manifest_parsers[self.descriptor].download_track(track=self, ctx=ctx)