summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xTOOLS/umpv4
1 files changed, 2 insertions, 2 deletions
diff --git a/TOOLS/umpv b/TOOLS/umpv
index 4beac03072..762e73a622 100755
--- a/TOOLS/umpv
+++ b/TOOLS/umpv
@@ -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.