Formatting

This commit is contained in:
Nicolas Mowen 2025-08-22 06:29:20 -06:00
parent 5b5f2684c2
commit 34c6e6d2ac
2 changed files with 9 additions and 3 deletions

View File

@ -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"
) )

View File

@ -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(