mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-11 13:45:25 +03:00
Formatting
This commit is contained in:
parent
8af7a84670
commit
52a5bbd729
@ -119,7 +119,9 @@ def go2rtc_streams():
|
|||||||
|
|
||||||
@bp.route("/go2rtc/streams/<camera_name>")
|
@bp.route("/go2rtc/streams/<camera_name>")
|
||||||
def go2rtc_camera_stream(camera_name: str):
|
def go2rtc_camera_stream(camera_name: str):
|
||||||
r = requests.get(f"http://127.0.0.1:1984/api/streams?src={camera_name}&video=all&audio=allµphone")
|
r = requests.get(
|
||||||
|
f"http://127.0.0.1:1984/api/streams?src={camera_name}&video=all&audio=allµphone"
|
||||||
|
)
|
||||||
if not r.ok:
|
if not r.ok:
|
||||||
logger.error("Failed to fetch streams from go2rtc")
|
logger.error("Failed to fetch streams from go2rtc")
|
||||||
return make_response(
|
return make_response(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user