Fix mpv msg module issue reported by Felhamed (#134)

This commit is contained in:
Etoh 2017-05-07 17:23:41 +01:00
parent c7e7114d37
commit b4e114aac3

View File

@ -157,6 +157,8 @@ class MplayerPlayer(BasePlayer):
def lineReceived(self, line):
if line:
self._client.ui.showDebugMessage("player << {}".format(line))
line = line.replace(" cplayer: ","") # --msg-module workaround
line = line.replace(" term-msg: ", "")
if "Failed to get value of property" in line or "=(unavailable)" in line or line == "ANS_filename=" or line == "ANS_length=" or line == "ANS_path=":
if "filename" in line:
self._getFilename()