From c7fbf7ab6ed357cb624a8e6425fe6a1a801e7a0f Mon Sep 17 00:00:00 2001 From: Et0h Date: Wed, 7 Feb 2024 19:18:53 +0000 Subject: [PATCH] MPC: Only reset position if file is playing (#663) --- syncplay/players/mpc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syncplay/players/mpc.py b/syncplay/players/mpc.py index 05150dd..51329bd 100755 --- a/syncplay/players/mpc.py +++ b/syncplay/players/mpc.py @@ -407,7 +407,7 @@ class MPCHCAPIPlayer(BasePlayer): def openFile(self, filePath, resetPosition=False): self._mpcApi.openFile(filePath) - if resetPosition: + if resetPosition and self._mpcApi.filePlaying: self.setPosition(0, resetPosition=True) def displayMessage(