From 2c885d07b2360e708cf65c5647d33a1204d1e276 Mon Sep 17 00:00:00 2001 From: Et0h Date: Sun, 6 Dec 2015 16:25:49 +0000 Subject: [PATCH] Reduce likelihood of moving to next file when at end of playlist --- syncplay/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syncplay/client.py b/syncplay/client.py index 5898e70..63680d1 100644 --- a/syncplay/client.py +++ b/syncplay/client.py @@ -173,7 +173,7 @@ class SyncplayClient(object): def loadNextFileInPlaylist(self): # TODO: Fix for GUIDs & add path checks (and make more of code re-use?) - if self._playlistIndex is None or len(self._playlist) == self._playlistIndex+1: + if self._playlistIndex is None or len(self._playlist) <= self._playlistIndex+1: return filename = self._playlist[self._playlistIndex+1] if utils.isURL(filename):