MCPcopy Create free account
hub / github.com/Syncplay/syncplay / setPlaylistIndex

Method setPlaylistIndex

syncplay/server.py:243–249  ·  view source on GitHub ↗
(self, watcher, index)

Source from the content-addressed store, hash-verified

241 watcher.setPlaylistIndex(room.getName(), room.getPlaylistIndex())
242
243 def setPlaylistIndex(self, watcher, index):
244 room = watcher.getRoom()
245 if room.canControl(watcher):
246 watcher.getRoom().setPlaylistIndex(index, watcher)
247 self._roomManager.broadcastRoom(watcher, lambda w: w.setPlaylistIndex(watcher.getName(), index))
248 else:
249 watcher.setPlaylistIndex(room.getName(), room.getPlaylistIndex())
250
251 def _allowTLSconnections(self, path):
252 try:

Callers

nothing calls this directly

Calls 6

broadcastRoomMethod · 0.80
getPlaylistIndexMethod · 0.80
getRoomMethod · 0.45
canControlMethod · 0.45
setPlaylistIndexMethod · 0.45
getNameMethod · 0.45

Tested by

no test coverage detected