Reduce likelihood of moving to next file when at end of playlist

This commit is contained in:
Et0h 2015-12-06 16:25:49 +00:00
parent 18a17b0aa9
commit 2c885d07b2

View File

@ -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):