From c14bf3e4fc044d7a388c1587f9d73c0ae9dd4b76 Mon Sep 17 00:00:00 2001 From: et0h Date: Sat, 6 Mar 2021 00:15:06 +0000 Subject: [PATCH] Only update duration on mpv eof if file loaded --- syncplay/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syncplay/client.py b/syncplay/client.py index ff2b84b..d627a05 100755 --- a/syncplay/client.py +++ b/syncplay/client.py @@ -501,7 +501,7 @@ class SyncplayClient(object): return self._globalPaused def eofReportedByPlayer(self): - if self.playlist.notJustChangedPlaylist(): + if self.playlist.notJustChangedPlaylist() and self.userlist.currentUser.file: self.ui.showDebugMessage("Fixing file duration to allow for playlist advancement") self.userlist.currentUser.file["duration"] = self._playerPosition