Fix new mpv bug (premature info requests)

This commit is contained in:
Etoh 2014-09-13 01:25:08 +01:00
parent 27bd1b38d3
commit 655b638097

View File

@ -127,6 +127,15 @@ class MplayerPlayer(BasePlayer):
def lineReceived(self, line): def lineReceived(self, line):
if "Error parsing option" in line: if "Error parsing option" in line:
self.quitReason = getMessage("mpv-version-error") 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) match = self.RE_ANSWER.match(line)
if not match: if not match: