mirror of https://github.com/mpv-player/mpv
parent
b6655dd72c
commit
eeb711f5f3
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
"""
|
"""
|
||||||
This script emulates "unique application" functionality on Linux. When starting
|
This script emulates "unique application" functionality on Linux. When starting
|
||||||
|
@ -76,7 +76,7 @@ if sock:
|
||||||
# escape: \ \n "
|
# escape: \ \n "
|
||||||
f = f.replace("\\", "\\\\").replace("\"", "\\\"").replace("\n", "\\n")
|
f = f.replace("\\", "\\\\").replace("\"", "\\\"").replace("\n", "\\n")
|
||||||
f = "\"" + f + "\""
|
f = "\"" + f + "\""
|
||||||
sock.send("raw loadfile " + f + " append\n")
|
sock.send(("raw loadfile " + f + " append\n").encode("utf-8"))
|
||||||
else:
|
else:
|
||||||
# Let mpv recreate socket if it doesn't already exist.
|
# Let mpv recreate socket if it doesn't already exist.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue