From 8ba51ba1116aa5523c04273ea707d0dcb3c9c78f Mon Sep 17 00:00:00 2001 From: Et0h Date: Sat, 13 Sep 2014 01:19:44 +0100 Subject: [PATCH] Fix new mpv bug by re-requesting info that was requested prematurely --- syncplay/players/mplayer.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/syncplay/players/mplayer.py b/syncplay/players/mplayer.py index 36b7271..343a201 100644 --- a/syncplay/players/mplayer.py +++ b/syncplay/players/mplayer.py @@ -128,6 +128,15 @@ class MplayerPlayer(BasePlayer): 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: return