From 65e7e2d1d11bc2817c98d35f61c7f0c15ecfd89c Mon Sep 17 00:00:00 2001 From: Nick Mowen Date: Thu, 27 Oct 2022 13:01:45 -0600 Subject: [PATCH] Formatting --- frigate/config.py | 4 +++- frigate/restream.py | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/frigate/config.py b/frigate/config.py index f8c5967fd..ddba65c78 100644 --- a/frigate/config.py +++ b/frigate/config.py @@ -524,7 +524,9 @@ class JsmpegStreamConfig(FrigateBaseModel): class RestreamConfig(FrigateBaseModel): enabled: bool = Field(default=True, title="Restreaming enabled.") - force_audio: bool = Field(default=False, title="Force audio compatibility with the browser.") + force_audio: bool = Field( + default=False, title="Force audio compatibility with the browser." + ) jsmpeg: JsmpegStreamConfig = Field( default_factory=JsmpegStreamConfig, title="Jsmpeg Stream Configuration." ) diff --git a/frigate/restream.py b/frigate/restream.py index db37ef827..3168bd922 100644 --- a/frigate/restream.py +++ b/frigate/restream.py @@ -30,7 +30,10 @@ class RestreamApi: for input in camera.ffmpeg.inputs: if "restream" in input.roles: - if input.path.startswith("rtsp") and not camera.restream.force_audio: + if ( + input.path.startswith("rtsp") + and not camera.restream.force_audio + ): self.relays[cam_name] = input.path else: # go2rtc only supports rtsp for direct relay, otherwise ffmpeg is used