youtubei.js / YT / Playlist
Class: Playlist
Extends
Constructors
new Playlist()
new Playlist(
actions
,data
,already_parsed
):Playlist
Parameters
• actions: Actions
• data: ApiResponse
| IBrowseResponse
• already_parsed: boolean
= false
Returns
Overrides
Defined in
src/parser/youtube/Playlist.ts:31
Properties
endpoint?
optional
endpoint:NavigationEndpoint
Defined in
src/parser/youtube/Playlist.ts:28
info
info:
object
author
author:
Author
can_delete
can_delete:
boolean
=header.can_delete
can_share
can_share:
boolean
=header.can_share
description?
optional
description:string
is_editable
is_editable:
boolean
=header.is_editable
last_updated
last_updated:
string
privacy
privacy:
string
=header.privacy
subtitle
subtitle:
null
|Text
thumbnails
thumbnails:
Thumbnail
[]
title?
optional
title:string
total_items
total_items:
string
type?
readonly
optional
type:string
views
views:
string
Defined in
src/parser/youtube/Playlist.ts:26
menu
menu:
YTNode
Defined in
src/parser/youtube/Playlist.ts:27
messages
messages:
ObservedArray
<Message
>
Defined in
src/parser/youtube/Playlist.ts:29
Accessors
actions
get
actions():Actions
Returns
Inherited from
Defined in
channels
get
channels():ObservedArray
<Channel
|GridChannel
>
Get all the channels in the feed
Returns
ObservedArray
<Channel
| GridChannel
>
Inherited from
Defined in
has_continuation
get
has_continuation():boolean
Checks if the feed has continuation.
Returns
boolean
Overrides
Defined in
src/parser/youtube/Playlist.ts:75
items
get
items():ObservedArray
<PlaylistVideo
|ReelItem
|ShortsLockupView
>
Returns
ObservedArray
<PlaylistVideo
| ReelItem
| ShortsLockupView
>
Defined in
src/parser/youtube/Playlist.ts:71
memo
get
memo():Memo
Returns
Inherited from
Defined in
page
get
page():T
Get the original page data
Returns
T
Inherited from
Defined in
page_contents
get
page_contents():SectionList
|ReloadContinuationItemsCommand
|MusicQueue
|RichGrid
Returns contents from the page.
Returns
SectionList
| ReloadContinuationItemsCommand
| MusicQueue
| RichGrid
Inherited from
Defined in
playlists
get
playlists():ObservedArray
<GridPlaylist
|LockupView
|Playlist
>
Get all playlists in the feed
Returns
ObservedArray
<GridPlaylist
| LockupView
| Playlist
>
Inherited from
Defined in
posts
get
posts():ObservedArray
<BackstagePost
|SharedPost
|Post
>
Get all the community posts in the feed
Returns
ObservedArray
<BackstagePost
| SharedPost
| Post
>
Inherited from
Defined in
secondary_contents
get
secondary_contents():undefined
|SuperParsedResult
<YTNode
>
Returns secondary contents from the page.
Returns
undefined
| SuperParsedResult
<YTNode
>
Inherited from
Defined in
shelves
get
shelves():ObservedArray
<ReelShelf
|RichShelf
|Shelf
>
Returns all segments/sections from the page.
Returns
ObservedArray
<ReelShelf
| RichShelf
| Shelf
>
Inherited from
Defined in
videos
get
videos():ObservedArray
<Video
|CompactVideo
|GridVideo
|PlaylistPanelVideo
|PlaylistVideo
|ReelItem
|ShortsLockupView
|WatchCardCompactVideo
>
Get all the videos in the feed
Returns
ObservedArray
<Video
| CompactVideo
| GridVideo
| PlaylistPanelVideo
| PlaylistVideo
| ReelItem
| ShortsLockupView
| WatchCardCompactVideo
>
Inherited from
Defined in
Methods
getContinuation()
getContinuation():
Promise
<Playlist
>
Retrieves next batch of contents and returns a new Feed object.
Returns
Promise
<Playlist
>
Overrides
Defined in
src/parser/youtube/Playlist.ts:105
getContinuationData()
getContinuationData():
Promise
<undefined
|IBrowseResponse
>
Retrieves continuation data as it is.
Returns
Promise
<undefined
| IBrowseResponse
>
Overrides
Defined in
src/parser/youtube/Playlist.ts:84
getShelf()
Finds shelf by title.
Parameters
• title: string
Returns
undefined
| ReelShelf
| RichShelf
| Shelf
Inherited from
Defined in
getPlaylistsFromMemo()
static
getPlaylistsFromMemo(memo
):ObservedArray
<GridPlaylist
|LockupView
|Playlist
>
Get all playlists on a given page via memo
Parameters
• memo: Memo
Returns
ObservedArray
<GridPlaylist
| LockupView
| Playlist
>
Inherited from
Defined in
getVideosFromMemo()
static
getVideosFromMemo(memo
):ObservedArray
<Video
|CompactVideo
|GridVideo
|PlaylistPanelVideo
|PlaylistVideo
|ReelItem
|ShortsLockupView
|WatchCardCompactVideo
>
Get all videos on a given page via memo
Parameters
• memo: Memo
Returns
ObservedArray
<Video
| CompactVideo
| GridVideo
| PlaylistPanelVideo
| PlaylistVideo
| ReelItem
| ShortsLockupView
| WatchCardCompactVideo
>