Creates a Deezer playlist from the data in an API response
the data to use to create the playlist
Whether the playlist should be partial
Whether multiple users have worked on the playlist
undefined
for partial playlists
The date of the playlist's creation
The Deezer user that created the playlist
Description of the playlist
undefined
for partial playlists
Duration of the playlist in seconds
undefined
for partial playlists
The number of fans the playlist has
undefined
for partial playlists
The id of the playlist
true
if the playlist is the loved tracks playlist
undefined
for partial playlists
Signifies that some properties are not populated
Partial playlists can be populated by calling DeezerPlaylist.fetch.
true
for playlists in search results and false
if the album was fetched directly or expanded.
Cover picture of the playlist available in four sizes
Whether the playlist is public or private
The title of the playlist
The list of tracks in the playlist
empty (length === 0) for partial and non public playlists
Use DeezerPlaylist.fetch to populate the tracks and other properties
The number of tracks in the playlist
The type, always 'playlist'
, useful to determine what the deezer function returned
The URL of the playlist on Deezer
Fetches all the tracks in the playlist and returns them
const playlist = await play.deezer('playlist url')
const tracks = await playlist.all_tracks()
An array of DeezerTrack
Fetches and populates the missing fields, including all tracks.
The property DeezerPlaylist.partial will be false
if this method finishes successfully.
A promise with the same playlist this method was called on.
Converts instances of this class to JSON data
JSON data.
Generated using TypeDoc
Class for Deezer Playlists