Move TempFileName to utils

This commit is contained in:
Deluan
2024-02-17 18:19:51 -05:00
committed by Deluan Quintão
parent 6eb13c9f79
commit fa72aaa462
4 changed files with 16 additions and 13 deletions
+2 -1
View File
@@ -13,6 +13,7 @@ import (
"github.com/dexterlb/mpvipc"
"github.com/navidrome/navidrome/log"
"github.com/navidrome/navidrome/model"
"github.com/navidrome/navidrome/utils"
)
type MpvTrack struct {
@@ -31,7 +32,7 @@ func NewTrack(playbackDoneChannel chan bool, deviceName string, mf model.MediaFi
return nil, err
}
tmpSocketName := TempFileName("mpv-ctrl-", ".socket")
tmpSocketName := utils.TempFileName("mpv-ctrl-", ".socket")
args := createMPVCommand(mpvComdTemplate, deviceName, mf.Path, tmpSocketName)
exe, err := start(args)