mpv: Use --prefetch-playlist option
This commit is contained in:
parent
7acda334a9
commit
762d4a5b9c
@ -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")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user