Fix http-jpeg template insertion

This commit is contained in:
Nicolas Mowen 2023-04-27 10:16:32 -06:00 committed by GitHub
parent 6bcf44aee8
commit fad106b752
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -320,7 +320,7 @@ def parse_preset_input(arg: Any, detect_fps: int) -> list[str]:
if arg == "preset-http-jpeg-generic": if arg == "preset-http-jpeg-generic":
input = PRESETS_INPUT[arg].copy() input = PRESETS_INPUT[arg].copy()
input[1] = str(detect_fps) input[len(_user_agent_args) + 1] = str(detect_fps)
return input return input
return PRESETS_INPUT.get(arg, None) return PRESETS_INPUT.get(arg, None)