The PlaylistContainer class
The playlist container contains all the playlists attached to a session.
It is a list of Playlist and PlaylistFolder objects.
-
class spotify.PlaylistContainer
-
add_new_playlist(name)
| Parameters: | name (unicode or ascii str) – name of the new playlist |
Add a new playlist to the container.
-
add_loaded_callback(callback[, userdata])
| Parameters: |
- callback – signature: (PlaylistContainer pc,
Object userdata).
- userdata – any object you would like to access in the callback.
|
The callback will be called when all metadata in the playlist container
has finished loading.
-
add_playlist_added_callback(callback[, userdata])
| Parameters: |
- callback – signature: (PlaylistContainer pc,
Playlist: p, int position,
Object userdata).
- userdata – any object you would like to access in the callback.
|
The callback will be called when a playlist is added to the playlist
container.
-
add_playlist_moved_callback(callback[, userdata])
| Parameters: |
- callback – signature: (PlaylistContainer pc,
Playlist p, int position,
int new_position, Object userdata).
- userdata – any object you would like to access in the callback.
|
The callback will be called when a playlist is moved from position to
new_position.
-
add_playlist_removed_callback(callback[, userdata])
| Parameters: |
- callback – signature: (PlaylistContainer pc,
Playlist p, int position,
Object userdata).
- userdata – any object you would like to access in the callback.
|
The callback will be called when a playlist is removed from the
container.