Constructor for YouTube Playlist Class
Json Parsed YouTube Playlist data
If the data is from search or not
Total no of pages count.
Token containing API key, Token, ClientVersion.
YouTube Playlist channel data
Map contaning data of all fetched videos
YouTube Playlist ID
Time when playlist was last updated
YouTube Playlist url with starting video url.
YouTube Playlist thumbnail Data
YouTube Playlist Name
YouTube Class type. == "playlist"
YouTube Playlist url
Total no of videos in that playlist
Videos array containing data of first 100 videos
Total views of that playlist
Gets total no of pages in that playlist class.
For getting all songs in a playlist
const playlist = play.playlist_info('playlist url');
await playlist.fetch();
let result = [];
for (let i = 0; i <= playlist.total_pages;i++) {
result.push(playlist.page(i));
}
This tells total no of videos that have been fetched so far.
This can be equal to videosCount if all videos in playlist have been fetched and they are not hidden.
Updates variable according to a normal data.
Json Parsed YouTube Playlist data
Updates variable according to a searched data.
Json Parsed YouTube Playlist data
Fetches remaining data from playlist
Max no of videos to fetch
Default = Infinity
Parses next segment of videos from playlist and returns parsed data.
Total no of videos to parse.
Default = Infinity
Array of YouTube Video Class
YouTube Playlist is divided into pages.
For example, if you want to get 101 - 200 songs
const playlist = play.playlist_info('playlist url')
await playlist.fetch()
const result = playlist.page(2)
Page number
Array of YouTube Video Class
Converts Playlist Class to a json parsed data.
Generated using TypeDoc
YouTube Playlist Class containing vital informations about playlist.