mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-27 11:25:08 +00:00
fix(api): cast download job options with the dl click types
cast_dl_params feeds ctx.params to dl() and dl.result() as on the CLI. A string lang value now returns 400 instead of splitting into letters, and -r accepts HDR10+.
This commit is contained in:
@@ -171,4 +171,4 @@ def test_range_validation_accepts_hdr10p_and_alias():
|
||||
|
||||
def test_range_validation_rejects_unknown_and_lists_hdr10p():
|
||||
err = handlers.validate_download_parameters({"range": ["HDR99"]})
|
||||
assert err and "HDR10P" in err and "HDR99" in err
|
||||
assert err and "hdr10p" in err.lower() and "HDR99" in err
|
||||
|
||||
Reference in New Issue
Block a user