16 KiB
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:32
Properties
endpoint?
optionalendpoint:NavigationEndpoint
Defined in
src/parser/youtube/Playlist.ts:29
info
info:
object
author
author:
Author
can_delete
can_delete:
boolean=header.can_delete
can_reorder
can_reorder:
boolean=video_list.can_reorder
can_share
can_share:
boolean=header.can_share
description?
optionaldescription:string
is_editable
is_editable:
boolean=video_list.is_editable
last_updated
last_updated:
string
privacy
privacy:
string=header.privacy
subtitle
subtitle:
null|Text
thumbnails
thumbnails:
Thumbnail[]
title?
optionaltitle:string
total_items
total_items:
string
type?
readonlyoptionaltype:string
views
views:
string
Defined in
src/parser/youtube/Playlist.ts:27
menu
menu:
YTNode
Defined in
src/parser/youtube/Playlist.ts:28
messages
messages:
ObservedArray<Message>
Defined in
src/parser/youtube/Playlist.ts:30
Accessors
actions
getactions():Actions
Returns
Inherited from
Defined in
channels
getchannels():ObservedArray<Channel|GridChannel>
Get all the channels in the feed
Returns
ObservedArray<Channel | GridChannel>
Inherited from
Defined in
has_continuation
gethas_continuation():boolean
Checks if the feed has continuation.
Returns
boolean
Overrides
Defined in
src/parser/youtube/Playlist.ts:73
items
getitems():ObservedArray<PlaylistVideo|ReelItem|ShortsLockupView>
Returns
ObservedArray<PlaylistVideo | ReelItem | ShortsLockupView>
Defined in
src/parser/youtube/Playlist.ts:69
memo
getmemo():Memo
Returns
Inherited from
Defined in
page
getpage():T
Get the original page data
Returns
T
Inherited from
Defined in
page_contents
getpage_contents():ReloadContinuationItemsCommand|SectionList|MusicQueue|RichGrid
Returns contents from the page.
Returns
ReloadContinuationItemsCommand | SectionList | MusicQueue | RichGrid
Inherited from
Defined in
playlists
getplaylists():ObservedArray<GridPlaylist|LockupView|Playlist>
Get all playlists in the feed
Returns
ObservedArray<GridPlaylist | LockupView | Playlist>
Inherited from
Defined in
posts
getposts():ObservedArray<BackstagePost|Post|SharedPost>
Get all the community posts in the feed
Returns
ObservedArray<BackstagePost | Post | SharedPost>
Inherited from
Defined in
secondary_contents
getsecondary_contents():null|SectionList|BrowseFeedActions|ProfileColumn|SecondarySearchContainer
Returns secondary contents from the page.
Returns
null | SectionList | BrowseFeedActions | ProfileColumn | SecondarySearchContainer
Inherited from
Defined in
shelves
getshelves():ObservedArray<ReelShelf|RichShelf|Shelf>
Returns all segments/sections from the page.
Returns
ObservedArray<ReelShelf | RichShelf | Shelf>
Inherited from
Defined in
videos
getvideos():ObservedArray<CompactVideo|GridVideo|PlaylistPanelVideo|PlaylistVideo|ReelItem|ShortsLockupView|Video|WatchCardCompactVideo>
Get all the videos in the feed
Returns
ObservedArray<CompactVideo | GridVideo | PlaylistPanelVideo | PlaylistVideo | ReelItem | ShortsLockupView | Video | 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:101
getContinuationData()
getContinuationData():
Promise<undefined|IBrowseResponse>
Retrieves continuation data as it is.
Returns
Promise<undefined | IBrowseResponse>
Overrides
Defined in
src/parser/youtube/Playlist.ts:82
getShelf()
Finds shelf by title.
Parameters
• title: string
Returns
undefined | ReelShelf | RichShelf | Shelf
Inherited from
Defined in
getPlaylistsFromMemo()
staticgetPlaylistsFromMemo(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()
staticgetVideosFromMemo(memo):ObservedArray<CompactVideo|GridVideo|PlaylistPanelVideo|PlaylistVideo|ReelItem|ShortsLockupView|Video|WatchCardCompactVideo>
Get all videos on a given page via memo
Parameters
• memo: Memo
Returns
ObservedArray<CompactVideo | GridVideo | PlaylistPanelVideo | PlaylistVideo | ReelItem | ShortsLockupView | Video | WatchCardCompactVideo>