12 KiB
youtubei.js / Mixins / Feed
Class: Feed<T>
Extended by
FilterableFeedTabbedFeedHistoryLibraryPlaylistSearchChannelListContinuationChannelHomeFeedSearch
Type Parameters
• T extends IParsedResponse = IParsedResponse
Constructors
new Feed()
new Feed<
T>(actions,response,already_parsed):Feed<T>
Parameters
• actions: Actions
• response: ApiResponse | IParsedResponse
• already_parsed: boolean = false
Returns
Feed<T>
Defined in
Accessors
actions
getactions():Actions
Returns
Defined in
channels
getchannels():ObservedArray<Channel|GridChannel>
Get all the channels in the feed
Returns
ObservedArray<Channel | GridChannel>
Defined in
has_continuation
gethas_continuation():boolean
Checks if the feed has continuation.
Returns
boolean
Defined in
memo
getmemo():Memo
Returns
Defined in
page
getpage():T
Get the original page data
Returns
T
Defined in
page_contents
getpage_contents():ReloadContinuationItemsCommand|SectionList|MusicQueue|RichGrid
Returns contents from the page.
Returns
ReloadContinuationItemsCommand | SectionList | MusicQueue | RichGrid
Defined in
playlists
getplaylists():ObservedArray<GridPlaylist|LockupView|Playlist>
Get all playlists in the feed
Returns
ObservedArray<GridPlaylist | LockupView | Playlist>
Defined in
posts
getposts():ObservedArray<BackstagePost|Post|SharedPost>
Get all the community posts in the feed
Returns
ObservedArray<BackstagePost | Post | SharedPost>
Defined in
secondary_contents
getsecondary_contents():null|SectionList|BrowseFeedActions|ProfileColumn|SecondarySearchContainer
Returns secondary contents from the page.
Returns
null | SectionList | BrowseFeedActions | ProfileColumn | SecondarySearchContainer
Defined in
shelves
getshelves():ObservedArray<ReelShelf|RichShelf|Shelf>
Returns all segments/sections from the page.
Returns
ObservedArray<ReelShelf | RichShelf | Shelf>
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>
Defined in
Methods
getContinuation()
getContinuation():
Promise<Feed<T>>
Retrieves next batch of contents and returns a new Feed object.
Returns
Promise<Feed<T>>
Defined in
getContinuationData()
getContinuationData():
Promise<undefined|T>
Retrieves continuation data as it is.
Returns
Promise<undefined | T>
Defined in
getShelf()
Finds shelf by title.
Parameters
• title: string
Returns
undefined | ReelShelf | RichShelf | Shelf
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>
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>