umpv: convert to python 3

Sigh.
This commit is contained in:
wm4 2020-04-03 12:57:24 +02:00
parent b6655dd72c
commit eeb711f5f3
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
"""
This script emulates "unique application" functionality on Linux. When starting
@ -76,7 +76,7 @@ if sock:
# escape: \ \n "
f = f.replace("\\", "\\\\").replace("\"", "\\\"").replace("\n", "\\n")
f = "\"" + f + "\""
sock.send("raw loadfile " + f + " append\n")
sock.send(("raw loadfile " + f + " append\n").encode("utf-8"))
else:
# Let mpv recreate socket if it doesn't already exist.