Skip to content

Commit

Permalink
Fix position not changing when playlist changed in mpv error (#618)
Browse files Browse the repository at this point in the history
  • Loading branch information
Et0h committed Jun 9, 2024
1 parent 2cc95d6 commit 4126264
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions syncplay/players/mpv.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,9 @@ def _getProperty(self, property_):
self._listener.sendLine(["print_text", '"ANS_{}=${{{}}}"'.format(property_, propertyID)])

def getCalculatedPosition(self):
if self._recentlyReset():
return 0

if self.fileLoaded == False:
self._client.ui.showDebugMessage(
"File not loaded so using GlobalPosition for getCalculatedPosition({})".format(
Expand Down

0 comments on commit 4126264

Please sign in to comment.