mirror of
https://github.com/Syncplay/syncplay
synced 2025-01-05 14:20:33 +00:00
Add initial/experimental playlist looping code
This commit is contained in:
parent
21ea14823e
commit
cfe123a361
@ -176,6 +176,8 @@ class SyncplayClient(object):
|
|||||||
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
|
return
|
||||||
filename = self._playlist[self._playlistIndex+1]
|
filename = self._playlist[self._playlistIndex+1]
|
||||||
|
if filename == "<LOOP>":
|
||||||
|
filename = self._playlist[0]
|
||||||
if utils.isURL(filename):
|
if utils.isURL(filename):
|
||||||
for URI in constants.SAFE_URIS:
|
for URI in constants.SAFE_URIS:
|
||||||
if filename.startswith(URI):
|
if filename.startswith(URI):
|
||||||
|
Loading…
Reference in New Issue
Block a user