mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 09:45:22 +03:00
Copy ffprobe in output
This commit is contained in:
parent
18b0840e6b
commit
97a56b8aeb
@ -635,7 +635,7 @@ def ffprobe(camera_name):
|
|||||||
else:
|
else:
|
||||||
output += "error getting stream\n"
|
output += "error getting stream\n"
|
||||||
|
|
||||||
return output
|
return jsonify(output, "200")
|
||||||
else:
|
else:
|
||||||
# user has single stream
|
# user has single stream
|
||||||
ffprobe = ffprobe_stream(config.ffmpeg.inputs[0].path)
|
ffprobe = ffprobe_stream(config.ffmpeg.inputs[0].path)
|
||||||
@ -648,9 +648,7 @@ def ffprobe(camera_name):
|
|||||||
"500",
|
"500",
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
return jsonify(
|
return jsonify(ffprobe, "200")
|
||||||
{"success": True, "message": ffprobe}, "200"
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
@bp.route("/<camera_name>")
|
@bp.route("/<camera_name>")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user