bug(core/playback/mpv): jukebox mode under windows - navidrome#2767
Add missing params to SocketName on windows Signed-off-by: apkatsikas <apkatsikas@gmail.com>
This commit is contained in:
parent
e7186a4d6c
commit
e8a60428b7
|
@ -8,7 +8,7 @@ import (
|
|||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
func SocketName() string {
|
||||
func SocketName(prefix, suffix string) string {
|
||||
// Windows needs to use a named pipe for the socket
|
||||
// see https://mpv.io/manual/master#using-mpv-from-other-programs-or-scripts
|
||||
return filepath.Join(`\\.\pipe\mpvsocket`, prefix+uuid.NewString()+suffix)
|
||||
|
|
Loading…
Reference in New Issue