From b814564fab2979e2b66b7440d65112426cdb82c2 Mon Sep 17 00:00:00 2001 From: Uriziel Date: Sat, 22 Feb 2014 20:01:39 +0100 Subject: [PATCH] Fixed error with mpv and utf8 osd --- syncplay/players/mplayer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syncplay/players/mplayer.py b/syncplay/players/mplayer.py index 2e8c126..846a230 100644 --- a/syncplay/players/mplayer.py +++ b/syncplay/players/mplayer.py @@ -243,7 +243,7 @@ class MplayerPlayer(BasePlayer): def sendLine(self, line): try: - line = (line + "\n").encode('utf8') + line = (line.decode('utf8') + u"\n").encode('utf8') self.__process.stdin.write(line) except IOError: pass