From 71c00d5928bc8992adc60da9b834b31674a476a1 Mon Sep 17 00:00:00 2001 From: Uriziel Date: Sun, 16 Dec 2012 14:05:17 +0100 Subject: [PATCH] Fixed handling escaped pipes in files for mpc --- syncplay/players/mpc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/syncplay/players/mpc.py b/syncplay/players/mpc.py index 9eeacf9..95e3297 100644 --- a/syncplay/players/mpc.py +++ b/syncplay/players/mpc.py @@ -5,6 +5,7 @@ import thread import win32con, win32api, win32gui, ctypes, ctypes.wintypes #@UnresolvedImport @UnusedImport from functools import wraps from syncplay.players.basePlayer import BasePlayer +import re class MPCHCAPIPlayer(BasePlayer): speedSupported = False @@ -262,7 +263,7 @@ class MpcHcApi: thread.start_new_thread(self.callbacks.onUpdatePlaystate, (self.playState,)) elif(cmd == self.CMD_NOWPLAYING): - value = value.split('|') + value = re.split(r'(?