Edit Playlist service

startEditPlaylist

EditPlaylistService.startEditPlaylist(String playlistId)

Start editing a MyTunesRSS playlist. Either edit an existing playlist by specifying a playlist ID or start a new empty one using NULL for the ID.

addTracks

EditPlaylistService.addTracks(String[] trackIds)

Add any number of tracks to the currently edited playlist.

addAlbums

EditPlaylistService.addAlbums(String[] albums)

Add any number of albums to the currently edited playlist. All tracks from the specified albums are added.

addArtists

EditPlaylistService.addArtists(String[] artists, boolean fullAlbums)

Add any number of artists to the currently edited playlist. All tracks from the specified artists are added. If fullAlbums is TRUE, all tracks of albums with at least one track of the specified artist are added.

addGenres

EditPlaylistService.addGenres(String[] genres, boolean fullAlbums)

Add any number of genres to the currently edited playlist. All tracks from the specified genres are added. If fullAlbums is TRUE, all tracks of albums with at least one track of the specified genre are added.

removeTracks

EditPlaylistService.removeTracks(String[] trackIds)

Remove any number of tracks from the currently edited playlist.

removeAlbums

EditPlaylistService.removeAlbums(String[] albums)

Remove any number of albums from the currently edited playlist. All tracks from the specified albums are removed.

removeArtists

EditPlaylistService.removeArtists(String[] artists)

Remove any number of artists from the currently edited playlist. All tracks from the specified artists are removed.

removeGenres

EditPlaylistService.removeGenres(String[] genres)

Remove any number of genres from the currently edited playlist. All tracks from the specified genres are removed.

cancelEditPlaylist

EditPlaylistService.cancelEditPlaylist()

Cancel editing a playlist. The contents of the currently edited playlist is lost.

savePlaylist

EditPlaylistService.savePlaylist(String playlistName,
                                 boolean userPrivate)

Save the currently edited playlist.

getPlaylist

EditPlaylistService.getPlaylist(int first, int count)

Get the currently edited playlist contents. The playlist and the list of tracks is returned. With first and count you can select a part of the playlist to be returned. A count of 0 means up to the end of the list.

removePlaylists

EditPlaylistService.removePlaylists(String[] playlistIds)

Remove any number of MyTunesRSS playlists. Only playlists owned by the current user can be removed.

moveTracks

EditPlaylistService.moveTracks(int first, int count, int offset)

Move tracks in a playlist. Moves "count" tracks starting with "first" "offset" positions up (for positive offsets) or down (for negative offsets).