From 412626471f24d1556dc2faa855c053ebb2a139a8 Mon Sep 17 00:00:00 2001 From: Et0h Date: Sun, 9 Jun 2024 22:35:28 +0100 Subject: [PATCH] Fix position not changing when playlist changed in mpv error (#618) --- syncplay/players/mpv.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/syncplay/players/mpv.py b/syncplay/players/mpv.py index 0453a12..f1187c9 100755 --- a/syncplay/players/mpv.py +++ b/syncplay/players/mpv.py @@ -183,6 +183,9 @@ class MpvPlayer(BasePlayer): 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(