From 655b638097ff5fa47b0f5b7ae737ac9b8af6d96b Mon Sep 17 00:00:00 2001 From: Etoh Date: Sat, 13 Sep 2014 01:25:08 +0100 Subject: [PATCH] Fix new mpv bug (premature info requests) --- syncplay/players/mplayer.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/syncplay/players/mplayer.py b/syncplay/players/mplayer.py index 36b7271..d836f4a 100644 --- a/syncplay/players/mplayer.py +++ b/syncplay/players/mplayer.py @@ -127,6 +127,15 @@ class MplayerPlayer(BasePlayer): def lineReceived(self, line): if "Error parsing option" in line: self.quitReason = getMessage("mpv-version-error") + + if "Failed to get value of property" in line: + if "filename" in line: + self._getFilename() + elif "length" in line: + self._getLength() + elif "path" in line: + self._getFilepath() + return match = self.RE_ANSWER.match(line) if not match: