forked from kenzuya/unshackle
feat(dl): warn when the temp volume cannot hold the HLS tracks of a title
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user