Cleanup spacing

This commit is contained in:
Nick Mowen 2022-12-30 10:04:04 -07:00
parent 072861a0a9
commit fce413b5f5

View File

@ -230,7 +230,6 @@ PRESETS_HW_ACCEL_ENCODE = {
], ],
} }
def parse_preset_hardware_acceleration_decode(arg: Any) -> list[str]: def parse_preset_hardware_acceleration_decode(arg: Any) -> list[str]:
"""Return the correct preset if in preset format otherwise return None.""" """Return the correct preset if in preset format otherwise return None."""
if not isinstance(arg, str): if not isinstance(arg, str):
@ -257,7 +256,6 @@ def parse_preset_hardware_acceleration_scale(
scale[1] = scale[1].format(fps, width, height) scale[1] = scale[1].format(fps, width, height)
return scale return scale
def parse_preset_hardware_acceleration_encode(arg: Any) -> list[str]: def parse_preset_hardware_acceleration_encode(arg: Any) -> list[str]:
"""Return the correct scaling preset or default preset if none is set.""" """Return the correct scaling preset or default preset if none is set."""
if not isinstance(arg, str): if not isinstance(arg, str):
@ -265,7 +263,6 @@ def parse_preset_hardware_acceleration_encode(arg: Any) -> list[str]:
return PRESETS_HW_ACCEL_ENCODE.get(arg, PRESETS_HW_ACCEL_ENCODE["default"]) return PRESETS_HW_ACCEL_ENCODE.get(arg, PRESETS_HW_ACCEL_ENCODE["default"])
PRESETS_INPUT = { PRESETS_INPUT = {
"preset-http-jpeg-generic": _user_agent_args "preset-http-jpeg-generic": _user_agent_args
+ [ + [