Add go2rtc module, test/config/urls pages, Frigate config fixes

This commit is contained in:
eduard256
2026-03-26 22:45:32 +00:00
parent 8dc8ba1096
commit f34a7b96c7
12 changed files with 2411 additions and 52 deletions
+9 -2
View File
@@ -65,8 +65,15 @@ func addToConfig(existing string, info *cameraInfo, req *Request) (*Response, er
result = append(result, rest[split:]...)
config := strings.Join(result, "\n")
diff := diffWithContext(result, added, 3)
return &Response{Config: config, Diff: diff}, nil
addedLines := make([]int, 0, len(added))
for i := range result {
if added[i] {
addedLines = append(addedLines, i+1)
}
}
return &Response{Config: config, Added: addedLines}, nil
}
func dedup(info *cameraInfo, cams, streams map[string]bool) *cameraInfo {