1
0
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:
Kacper Michajłow 2025-02-01 04:14:26 +01:00
parent dfbd60f9bb
commit f9a7179f37

View File

@ -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)