From e0a9cccdcf82243c436d4da7871430ebe3986665 Mon Sep 17 00:00:00 2001 From: Uriziel Date: Thu, 26 Sep 2013 21:55:38 +0200 Subject: [PATCH] Fixed mplayer not handling utf8 properly --- 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 a164f5e..6e56e7a 100644 --- a/syncplay/players/mplayer.py +++ b/syncplay/players/mplayer.py @@ -77,7 +77,7 @@ class MplayerPlayer(BasePlayer): self._listener.sendLine("get_property {}".format(property_)) def displayMessage(self, message, duration = (constants.OSD_DURATION*1000)): - self._listener.sendLine('osd_show_text "{!s}" {} {}'.format(message, duration, constants.MPLAYER_OSD_LEVEL)) + self._listener.sendLine(u'osd_show_text "{!s}" {} {}'.format(message, duration, constants.MPLAYER_OSD_LEVEL).encode('utf-8')) def setSpeed(self, value): self._setProperty('speed', "{:.2f}".format(value))