mirror of
https://github.com/mpv-player/mpv
synced 2025-03-11 08:37:59 +00:00
TOOLS/umpv: use append-play
It makes more sense to star playback if nothing is playing.
This commit is contained in:
parent
dfbd60f9bb
commit
f9a7179f37
@ -64,7 +64,7 @@ def send_files_to_mpv(sock: socket.socket, files: Iterable[str]) -> None:
|
||||
for f in files:
|
||||
# escape: \ \n "
|
||||
f = f.replace("\\", "\\\\").replace('"', '\\"').replace("\n", "\\n")
|
||||
sock.send(f'raw loadfile "{f}" append\n'.encode())
|
||||
sock.send(f'raw loadfile "{f}" append-play\n'.encode())
|
||||
except Exception:
|
||||
print("mpv is terminating or the connection was lost.", file=sys.stderr)
|
||||
sys.exit(1)
|
||||
|
Loading…
Reference in New Issue
Block a user