

def remove_tracks(self, indexes):
    'Remove the tracks at the given ``indexes`` from the playlist.\n\n        ``indexes`` can be a single index or a list of indexes to remove.\n        '
    if isinstance(indexes, int):
        indexes = [indexes]
    indexes = list(set(indexes))
    spotify.Error.maybe_raise(lib.sp_playlist_remove_tracks(self._sp_playlist, indexes, len(indexes)))

dataset/ETHPy150Open mopidy/pyspotify/spotify/playlist.py Playlist.remove_tracks/original