mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-16 03:52:09 +03:00
Formatting
This commit is contained in:
parent
5b5f2684c2
commit
34c6e6d2ac
@ -372,7 +372,9 @@ class AudioEventMaintainer(threading.Thread):
|
||||
|
||||
if not chunk:
|
||||
if self.audio_listener.poll() is not None:
|
||||
self.requestor.send_data(f"{self.camera_config.name}/status/audio", "offline")
|
||||
self.requestor.send_data(
|
||||
f"{self.camera_config.name}/status/audio", "offline"
|
||||
)
|
||||
self.logger.error("ffmpeg process is not running, restarting...")
|
||||
log_and_restart()
|
||||
return
|
||||
@ -398,7 +400,9 @@ class AudioEventMaintainer(threading.Thread):
|
||||
)
|
||||
self.start_or_restart_ffmpeg()
|
||||
else:
|
||||
self.requestor.send_data(f"{self.camera_config.name}/status/audio", "disabled")
|
||||
self.requestor.send_data(
|
||||
f"{self.camera_config.name}/status/audio", "disabled"
|
||||
)
|
||||
self.logger.debug(
|
||||
f"Disabling audio detections for {self.camera_config.name}, ending events"
|
||||
)
|
||||
|
||||
@ -334,7 +334,9 @@ class CameraWatchdog(threading.Thread):
|
||||
continue
|
||||
|
||||
for role in p["roles"]:
|
||||
self.requestor.send_data(f"{self.config.name}/status/{role}", "offline")
|
||||
self.requestor.send_data(
|
||||
f"{self.config.name}/status/{role}", "offline"
|
||||
)
|
||||
|
||||
p["logpipe"].dump()
|
||||
p["process"] = start_or_restart_ffmpeg(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user