Fix position not changing when playlist changed in mpv error (#618)

This commit is contained in:
Et0h 2024-06-09 22:35:28 +01:00
parent 2cc95d6ef9
commit 412626471f
1 changed files with 3 additions and 0 deletions

View File

@ -183,6 +183,9 @@ class MpvPlayer(BasePlayer):
self._listener.sendLine(["print_text", '"ANS_{}=${{{}}}"'.format(property_, propertyID)]) self._listener.sendLine(["print_text", '"ANS_{}=${{{}}}"'.format(property_, propertyID)])
def getCalculatedPosition(self): def getCalculatedPosition(self):
if self._recentlyReset():
return 0
if self.fileLoaded == False: if self.fileLoaded == False:
self._client.ui.showDebugMessage( self._client.ui.showDebugMessage(
"File not loaded so using GlobalPosition for getCalculatedPosition({})".format( "File not loaded so using GlobalPosition for getCalculatedPosition({})".format(