From cfe123a3616fb1c5f6a09c421ea4bab747f57b89 Mon Sep 17 00:00:00 2001 From: Et0h Date: Tue, 12 Jan 2016 22:57:32 +0000 Subject: [PATCH] Add initial/experimental playlist looping code --- syncplay/client.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/syncplay/client.py b/syncplay/client.py index 0fc289f..98445ff 100644 --- a/syncplay/client.py +++ b/syncplay/client.py @@ -176,6 +176,8 @@ class SyncplayClient(object): if self._playlistIndex is None or len(self._playlist) <= self._playlistIndex+1: return filename = self._playlist[self._playlistIndex+1] + if filename == "": + filename = self._playlist[0] if utils.isURL(filename): for URI in constants.SAFE_URIS: if filename.startswith(URI):