Skip to content

Add object detection, tracking, mobile notifications, and search to any security camera.

patch dict crash

roryclearf45f79b621bb
diff --git a/clearcam.py b/clearcam.py
index aaf52da..3ca49d2 100644
--- a/clearcam.py
+++ b/clearcam.py
@@ -300,6 +300,7 @@ class VideoCapture:
if cam_name in self.proc: self._safe_kill_process(self.proc[cam_name])
if cam_name in self.hls_proc: self._safe_kill_process(self.hls_proc[cam_name])
src = self.src[cam_name]
+ if type(src) != str: return # todo, fixes a crash, fix cause
ffmpeg_path = find_ffmpeg()