From eeb711f5f3e6222a890ea61b0294a10d8270b85b Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 3 Apr 2020 12:57:24 +0200 Subject: [PATCH] umpv: convert to python 3 Sigh. --- TOOLS/umpv | 4 ++-- 1 file 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.