rename streamInfo to stream_info

Co-authored-by: Blake Blackshear <blakeb@blakeshome.com>
This commit is contained in:
Sergey Krashevich 2023-06-15 15:19:29 +03:00 committed by GitHub
parent 6d202c67f3
commit 31ead3eded
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -963,9 +963,9 @@ class FrigateConfig(FrigateBaseModel):
for input in camera_config.ffmpeg.inputs:
if "detect" in input.roles:
try:
streamInfo = get_video_properties(input.path)
camera_config.detect.width = streamInfo["width"]
camera_config.detect.height = streamInfo["height"]
stream_info = get_video_properties(input.path)
camera_config.detect.width = stream_info["width"]
camera_config.detect.height = stream_info["height"]
break
except Exception:
camera_config.detect.width = DEFAULT_DETECT_DIMENSIONS[