Gets the object as serialized JSON string. Or sets serialized JSON (to fill this object's metadata by the metadata included within the JSON)
Gets count of child playlists
Set to true after deletion so that 'change' event is called and item is removed from UI lists.
Gets playlist id
Gets/Sets whether the playlist is auto-playlist
Whether this object can be listened (e.g. for 'change' event)
Is source for status bar informations.
Gets/Sets title of this playlist.
Gets the object type as string
Gets playlist parent
Gets id of parent playlist
Gets persistent id of the object
Whether object support pin to pinned list
Gets the object title
Add track into playlist
to add
Add tracks into playlist
to add
Unlock object from update state. beginUpdate and endUpdate must be in pair. When endUpdate is called, change event is called.
Get all external object links (acoustID, musicbrainz, wikipedia etc.)
Gets children playlists (sub-playlists)
Rest
...params: any[]Get external link associated with the object. All link identifiers are (updated list is available in consts.js) : var LINK_MUSICBRAINZ = 'musicbrainz', LINK_ACOUSTID = 'acoustid', LINK_TVDB = 'tvdb', LINK_MAZE = 'maze', LINK_IMDB = 'imdb', LINK_WIKI = 'wiki', LINK_ECHOPRINT = 'echoprint', LINK_MOVIEDB = 'moviedb', LINK_DISCOGS = 'discogs';
Rest
...params: any[]Inserts track into playlist
Track to insert
Inserts tracks into playlist
Tracks to insert
Removes selected tracks from playlist
Removes track from playlist
Track to remove
Saves re-ordered playlist's tracks into DB.
Does not function with Auto-Playlists. Auto-Playlists use QueryData for their sorting. See searchEditor.js and playlistHeader.js for an example on how to manipulate QueryData for sorting.
Add tracks into playlist, but clears the existing tracks at first.
NOTE: Introduced in version 5.0.4
to add
Event is called when object is somehow changed
See App.listen
additional change type (can have values like 'tracklist', 'deleted', 'title' or undefined)
Rest
...additionalArgs: any[]app.listen(object, 'change', (changeType) => { });
Event is called when object is going to destroy
See App.listen
Event is called when a child playlist is created. Most useful with app.playlists.root.
See App.listen
ID of created playlist. (pre version 5.0.4. use app.playlists.getByIDAsync(playlistID) to get the Playlist object).
Event is called when a child playlist is modified. Most useful with app.playlists.root.
See App.listen
ID of changed playlist (pre version 5.0.4. use app.playlists.getByIDAsync(playlistID) to get the Playlist object).
Event is called when a child playlist is removed. Most useful with app.playlists.root.
See App.listen
Object containing info of the playlist that was removed.
Event is called when status info of the object is changed
See App.listen
Playlist class
Playlist