summaryrefslogtreecommitdiff
path: root/media/video.go
diff options
context:
space:
mode:
Diffstat (limited to 'media/video.go')
-rw-r--r--media/video.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/media/video.go b/media/video.go
index 9c10b1e..6e88a8c 100644
--- a/media/video.go
+++ b/media/video.go
@@ -10,6 +10,8 @@ import (
"time"
"github.com/dhowden/tag"
+
+ "github.com/wybiral/tube/utils"
)
// Video represents metadata for a single video.
@@ -75,8 +77,8 @@ func ParseVideo(p *Path, name string) (*Video, error) {
if pic != nil {
v.Thumb = pic.Data
v.ThumbType = pic.MIMEType
- } else if cmdExists("mt") {
- if err := runCmd(3, "mt", "-s", "-n", "1", pth); err != nil {
+ } else if utils.CmdExists("mt") {
+ if err := utils.RunCmd(3, "mt", "-s", "-n", "1", pth); err != nil {
return nil, err
}
data, err := ioutil.ReadFile(fmt.Sprintf("%s.jpg", strings.TrimSuffix(pth, filepath.Ext(pth))))