refactor(api): keep the dl option facts in one table in core/dl_options.py

This commit is contained in:
imSp4rky
2026-11-24 15:14:38 -07:00
parent bbe58930b5
commit 6c334d31a7
11 changed files with 370 additions and 200 deletions
+1 -1
View File
@@ -138,7 +138,7 @@ def test_job_status_values() -> None:
def test_api_sub_format_keeps_the_original_sentinel() -> None:
"""sub_format "original" keeps the source format, so the API cast must not turn it into a codec or None."""
from unshackle.commands.dl import dl
from unshackle.core.api.handlers import cast_dl_params
from unshackle.core.dl_options import cast_dl_params
from unshackle.core.tracks import Subtitle
assert cast_dl_params(dl.cli, {"sub_format": "ORIGINAL"})["sub_format"] == "original"