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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user