Container manager

class spotify.manager.SpotifyContainerManager

Handles Spotify playlist container callbacks. To implement you own callbacks, inherit from this class.

Exceptions raised in your callback handlers will be displayed on the standard error output (stderr).

watch(container, userdata=None)

Listen to modifications events on a container.

unwatch(container, userdata=None)

Stop listenning to events on the container.

container_loaded(container, userdata)

Callback

This callback is called when the container has finished loading. This event happens after a successful login, or after a modification on the container (after the 3 callbacks described below).

Parameters:container (spotify.PlaylistContainer) – a playlist container
playlist_added(container, playlist, position, userdata)

Callback

Called when a new playlist is added to the container.

Parameters:
playlist_moved(container, playlist, position, new_position, userdata)

Callback

Called when a playlist is moved in the container.

Parameters:
playlist_removed(container, playlist, position, userdata)

Callback

Called when a playlist is removed from the container.

Parameters: