mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 17:55:21 +03:00
Clean ffmpeg paths
This commit is contained in:
parent
91982c4f7e
commit
39c8564750
@ -577,9 +577,14 @@ def events():
|
|||||||
def config():
|
def config():
|
||||||
config = current_app.frigate_config.dict()
|
config = current_app.frigate_config.dict()
|
||||||
|
|
||||||
# add in the ffmpeg_cmds
|
|
||||||
for camera_name, camera in current_app.frigate_config.cameras.items():
|
for camera_name, camera in current_app.frigate_config.cameras.items():
|
||||||
camera_dict = config["cameras"][camera_name]
|
camera_dict = config["cameras"][camera_name]
|
||||||
|
|
||||||
|
# clean paths
|
||||||
|
for input in camera_dict["ffmepg"]["inputs"]:
|
||||||
|
input["path"] = clean_camera_user_pass(input["path"])
|
||||||
|
|
||||||
|
# add clean ffmpeg_cmds
|
||||||
camera_dict["ffmpeg_cmds"] = copy.deepcopy(camera.ffmpeg_cmds)
|
camera_dict["ffmpeg_cmds"] = copy.deepcopy(camera.ffmpeg_cmds)
|
||||||
for cmd in camera_dict["ffmpeg_cmds"]:
|
for cmd in camera_dict["ffmpeg_cmds"]:
|
||||||
cmd["cmd"] = clean_camera_user_pass(" ".join(cmd["cmd"]))
|
cmd["cmd"] = clean_camera_user_pass(" ".join(cmd["cmd"]))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user