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

Method deleteAtIndex

syncplay/client.py:2077–2083  ·  view source on GitHub ↗
(self, index)

Source from the content-addressed store, hash-verified

2075 self.changePlaylist([*self._playlist, file])
2076
2077 def deleteAtIndex(self, index):
2078 new_playlist = self._playlist.copy()
2079 if index >= 0 and index < len(new_playlist):
2080 del new_playlist[index]
2081 self.changePlaylist(new_playlist)
2082 else:
2083 raise TypeError("Invalid index")
2084
2085
2086 @needsSharedPlaylistsEnabled

Callers 1

executeCommandMethod · 0.80

Calls 1

changePlaylistMethod · 0.95

Tested by

no test coverage detected