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