(self, index)
| 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 |
no test coverage detected