mpv: Use --prefetch-playlist option

This commit is contained in:
nemunaire 2024-10-01 19:30:47 +02:00
parent 7acda334a9
commit 762d4a5b9c

View File

@ -67,7 +67,7 @@ func (s *MPVSource) Enable() (err error) {
s.ipcSocketDir, err = os.MkdirTemp("", "hathoris") s.ipcSocketDir, err = os.MkdirTemp("", "hathoris")
opts := append([]string{"--no-video", "--no-terminal"}, s.Options...) opts := append([]string{"--no-video", "--no-terminal", "--prefetch-playlist=yes"}, s.Options...)
if s.ipcSocketDir != "" { if s.ipcSocketDir != "" {
opts = append(opts, "--input-ipc-server="+s.ipcSocket(), "--pause") opts = append(opts, "--input-ipc-server="+s.ipcSocket(), "--pause")
} }