Remove panic from thumbnail generation

This commit is contained in:
Gabe Kangas
2020-06-22 13:41:53 -07:00
parent b6085130c6
commit b0768de6c0

View File

@@ -8,6 +8,8 @@ import (
"path" "path"
"strings" "strings"
"time" "time"
log "github.com/sirupsen/logrus"
) )
func startThumbnailGenerator(chunkPath string) { func startThumbnailGenerator(chunkPath string) {
@@ -82,5 +84,7 @@ func fireThumbnailGenerator(chunkPath string) {
// fmt.Println(ffmpegCmd) // fmt.Println(ffmpegCmd)
_, err = exec.Command("sh", "-c", ffmpegCmd).Output() _, err = exec.Command("sh", "-c", ffmpegCmd).Output()
verifyError(err) if err != nil {
log.Errorln("Unable to generate thumbnail: ", err)
}
} }