Browse Source

Remove panic from thumbnail generation

pull/23/head
Gabe Kangas 5 years ago
parent
commit
b0768de6c0
  1. 6
      thumbnailGenerator.go

6
thumbnailGenerator.go

@ -8,6 +8,8 @@ import ( @@ -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) { @@ -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)
}
}

Loading…
Cancel
Save