Playlist¶
- class deezer.Playlist(client, json)¶
To work with Deezer playlist objects.
Check the Deezer documentation for more details about each field.
- id: int¶
- title: str¶
- description: str¶
- duration: int¶
- public: bool¶
- is_loved_track: bool¶
- collaborative: bool¶
- nb_tracks: int¶
- unseen_track_count: int¶
- fans: int¶
- link: str¶
- picture: str¶
- picture_small: str¶
- picture_medium: str¶
- picture_big: str¶
- picture_xl: str¶
- checksum: str¶
- get_tracks(**kwargs)¶
Get tracks from a playlist.
- Returns:
a
PaginatedList
ofTrack
instances- Return type:
- get_fans(**kwargs)¶
Get fans from a playlist.
- Returns:
a
PaginatedList
ofUser
instances- Return type:
- mark_seen()¶
Mark the playlist as seen.
- Returns:
a boolean that tells if the operation was successful
- Return type:
bool
- add_tracks(tracks)¶
Add tracks to a playlist.
- delete_tracks(tracks)¶
Delete tracks from a playlist.