Playlist objects are iterable: they are a list of Track objects.
Playlist objects.
| Parameters: |
|
|---|
| Parameters: |
|---|
| Parameters: |
|---|
| Parameters: |
|---|
| Parameters: |
|
|---|
| Parameters: |
|
|---|
Called when state changed for a playlist.
There are three states that trigger this callback:
Collaboration for this playlist has been turned on or off
changes have now been committed
The playlist started loading, or finished loading
| Parameters: |
|
|---|
Called when a playlist is updating or is done updating.
This is called before and after a series of changes are applied to the playlist. It allows e.g. the user interface to defer updating until the entire operation is complete.
| Parameters: |
|
|---|
| Parameters: |
|---|
user is the new user information and when is a time in seconds since the UNIX Epoch.
| Parameters: |
|
|---|
| Parameters: |
|
|---|
| Parameters: |
|
|---|
| Parameters: |
|
|---|
| Parameters: |
|
|---|
| Return type: | int |
|---|---|
| Returns: | collaborative status for a playlist. |
Note
A playlist in collaborative state can be modifed by all users, not only the user owning the list.
| Return type: | int |
|---|---|
| Returns: | wether this playlist has been loaded by the client |
| Return type: | string |
|---|---|
| Returns: | the name of the playlist. |
| Return type: | int |
|---|---|
| Returns: | The number of subscribers of this playlist |
| Return type: | spotify.User |
|---|---|
| Returns: | the owner of the playlist |
| Parameters: | name (unicode) – the new name |
|---|
Removes the corresponding callback, userdata couple.
| Parameters: | tracks (list of Track) – A list of tracks to be removed from the playlist. |
|---|
| Return type: | list of unicode |
|---|---|
| Returns: | a list of canonical names of subscribers of this playlist. |
Note
The count returned for this function may be less than those returned by num_subscribers(). Spotify does not track each user subscribed to a playlist for playlist with many (>500) subscribers.
| Parameters: | index (int) – index of the track in the playlist |
|---|---|
| Return type: | int |
| Returns: | number of seconds after Unix epoch the track was added to the playlist |
returns 'playlist'
Ask library to update the subscription count for a playlist.
When the subscription info has been fetched from the Spotify backend the manager.SpotifyPlaylistManager.subscribers_changed() callback will be invoked. In that callback use num_subscribers() and/or subscribers() to get information about the subscribers. You can call those two functions anytime you want but the information might not be up to date in such cases
An entry in a playlist container that is not a playlist (often folder boundaries).
if type is 'folder_start', returns the id of the folder, else returns 0.
returns True when the container it belongs to is loaded.
if type is 'folder_start', returns the name of the folder, else returns an empty string.
returns 'folder_start', 'folder_end' or 'placeholder'.