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
@@ -99,13 +99,17 @@ def run(
episodes: dict,
service: FakeService | None = None,
to_end: bool = False,
download: Any = None,
**flags: Any,
) -> Any:
"""Return the Selected ids, the exit code, or None for a run that completes; to_end runs past selection."""
"""Return the Selected ids, the exit code, or None for a run that completes; to_end runs past selection.
A run to the end downloads nothing unless ``download`` stands in for ``download_tracks_in_passes``.
"""
if not to_end:
monkeypatch.setattr(Tracks, "tree", lambda self, *a, **k: (_ for _ in ()).throw(Selected(self)))
else:
monkeypatch.setattr("unshackle.commands.dl.download_tracks_in_passes", lambda *a, **k: None)
monkeypatch.setattr("unshackle.commands.dl.download_tracks_in_passes", download or (lambda *a, **k: None))
monkeypatch.setattr("unshackle.core.providers.search_metadata", lambda *a, **k: None)
cmd = Harness.__new__(Harness)
cmd.log = logging.getLogger("test_kind_only")