refactor(dl): check dl options once in a run plan shared by the CLI and the REST download job

This commit is contained in:
imSp4rky
2026-11-25 16:16:43 -07:00
parent 7838226590
commit 4d3df8e74f
23 changed files with 501 additions and 524 deletions
+2 -1
View File
@@ -57,7 +57,8 @@ def test_kind_only_conflict(params, expected):
def test_api_rejects_a_conflict():
assert validate_download_parameters({**BASE, "audio_description_only": True, "no_audio": True}) == (
"Cannot use both audio_description_only and no_audio"
"--audio-description-only cannot be used with --no-audio: --no-audio drops the tracks that "
"--audio-description-only selects."
)
assert validate_download_parameters({**BASE, "audio_description_only": True, "audio_only": True}) is None