Constructor for YouTube Playlist Class
Json Parsed YouTube Playlist data
If the data is from search or not
OptionalchannelYouTube Playlist channel data
OptionalidYouTube Playlist ID
OptionallastTime when playlist was last updated
OptionallinkYouTube Playlist url with starting video url.
OptionalthumbnailYouTube Playlist thumbnail Data
OptionaltitleYouTube Playlist Name
YouTube Class type. == "playlist"
OptionalurlYouTube Playlist url
OptionalvideoTotal no of videos in that playlist
OptionalviewsTotal views of that playlist
This tells total number 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.
Fetches all the videos in the playlist and returns them
const playlist = await play.playlist_info('playlist url')
const videos = await playlist.all_videos()
An array of YouTubeVideo objects
Fetches remaining data from playlist
For fetching and getting all songs data, see total_pages property.
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 Playlists are divided into pages.
For example, if you want to get 101 - 200 songs
const playlist = await 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.
YouTube Playlist Class containing vital informations about playlist.