

def reorder_tracks(self, indexes, new_index):
    'Move the tracks at the given ``indexes`` to a ``new_index`` in the\n        playlist.\n\n        ``indexes`` can be a single index or a list of indexes to move.\n\n        ``new_index`` must be equal to or lower than the current playlist\n        length.\n        '
    if isinstance(indexes, int):
        indexes = [indexes]
    indexes = list(set(indexes))
    spotify.Error.maybe_raise(lib.sp_playlist_reorder_tracks(self._sp_playlist, indexes, len(indexes), new_index))

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