diff --git a/main.go b/main.go index 393b7b1..b4f62e0 100644 --- a/main.go +++ b/main.go @@ -27,7 +27,7 @@ import ( const ProductName = "sentry-picam" // ProductVersion # -const ProductVersion = "0.7.3" +const ProductVersion = "0.7.4" var clients = make(map[*websocket.Conn]bool) var clientsMotion = make(map[*websocket.Conn]bool) diff --git a/pkg/raspivid/convert.go b/pkg/raspivid/convert.go index 83a18b1..3495be6 100644 --- a/pkg/raspivid/convert.go +++ b/pkg/raspivid/convert.go @@ -54,7 +54,7 @@ func (conv *Converter) convertFile(name string) { delete(conv.highlightCache, name) os.Remove(conv.folder + "raw/" + name + ".h264") - log.Println("File written: ", name, "Offset:", skip) + //log.Println("File written: ", name, "Offset:", skip) if conv.TriggerScript != "" { cmd = exec.Command("nice", "-19", diff --git a/recordingList.go b/recordingList.go index d9a0a4a..062f0ce 100644 --- a/recordingList.go +++ b/recordingList.go @@ -82,7 +82,7 @@ func (rec *RecordingList) handleDestroyRecording(w http.ResponseWriter, r *http. s := strings.Split(f.Name(), "_") videoTime, _ := time.Parse("2006-01-02-1504", s[0]) - if time.Now().Add(-time.Hour * 24 * 7).After(videoTime) { + if time.Now().Add(-time.Hour).After(videoTime) { os.Remove(rec.Folder + "deleteme/" + f.Name()) } } diff --git a/sentry-picam b/sentry-picam index 26457f6..cc22c90 100644 Binary files a/sentry-picam and b/sentry-picam differ