From 41fea2a5319e19c558197a0b0e599a7a26c3bf7b Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Sat, 28 Aug 2021 07:42:30 -0500 Subject: [PATCH] fix match for websocket url (fixes #1633) --- frigate/output.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frigate/output.py b/frigate/output.py index 3ae840b59..8da9d4803 100644 --- a/frigate/output.py +++ b/frigate/output.py @@ -75,8 +75,9 @@ class BroadcastThread(threading.Thread): ws_iter = iter(websockets.values()) for ws in ws_iter: - if not ws.terminated and ws.environ["PATH_INFO"].endswith( - self.camera + if ( + not ws.terminated + and ws.environ["PATH_INFO"] == f"/{self.camera}" ): try: ws.send(buf, binary=True)