From b0768de6c01387e28b292a123f327f552cf4ce09 Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Mon, 22 Jun 2020 13:41:53 -0700 Subject: [PATCH] Remove panic from thumbnail generation --- thumbnailGenerator.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/thumbnailGenerator.go b/thumbnailGenerator.go index f81bd6afe..4408ffccf 100644 --- a/thumbnailGenerator.go +++ b/thumbnailGenerator.go @@ -8,6 +8,8 @@ import ( "path" "strings" "time" + + log "github.com/sirupsen/logrus" ) func startThumbnailGenerator(chunkPath string) { @@ -82,5 +84,7 @@ func fireThumbnailGenerator(chunkPath string) { // fmt.Println(ffmpegCmd) _, err = exec.Command("sh", "-c", ffmpegCmd).Output() - verifyError(err) + if err != nil { + log.Errorln("Unable to generate thumbnail: ", err) + } }