You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 3, 2021. It is now read-only.
Christopher Nelson edited this page Dec 22, 2016
·
4 revisions
getPlaylistMedias(pid[, callback])
Returns all songs in a playlist.
Parameters
pid number
ID of the playlist to retrieve the songs from.
callback function (optional)
Callback function to be called with data (Array of songs) from server.
Returns
null
Example
// Get songs from playlist with ID 123456bot.getPlaylistMedias(123456);/*// if playlist contains song(s){ "author": "An author", "cid": "AAAAAA-AAA", "duration": 150, "format": 1, "id": abcdef, "image": "default.jpg", "title": "A song title"}// else{}*/