playlist_tools.ql

playlist_tools.ql
Contents of the file.

Function Overview

Function Description
native fun createPlaylist(name) Creates a new playlist with the given name.
native fun createPlaylist(name, desc) Creates a new playlist with the given name and description.
native fun addToPlaylist(playlist, songList) Adds the given song list to the given playlist.

Functions

native fun createPlaylist(name) link

Creates a new playlist with the given name.

Params
name ( string )

The name of the playlist

Returns collection

The created playlist

native fun createPlaylist(name, desc) link

Creates a new playlist with the given name and description.

Params
name ( string )

The name of the playlist

desc ( string )

The description of the playlist

Returns collection

The created playlist

native fun addToPlaylist(playlist, songList) link

Adds the given song list to the given playlist.

Params
playlist ( collection )

The playlist to add the songs to

songList ( list )

The list of songs to add to the playlist