Skip to content

Latest commit

 

History

History
115 lines (72 loc) · 2.37 KB

feed.md

File metadata and controls

115 lines (72 loc) · 2.37 KB

Feed

Represents a YouTube feed. This class provides a set of utility methods for parsing and interacting with feeds.

API

videos

Returns all videos in the feed.

Returns: ObservedArray<Video | GridVideo | ReelItem | CompactVideo | PlaylistVideo | PlaylistPanelVideo | WatchCardCompactVideo>

posts

Returns all posts in the feed.

Returns: ObservedArray<Post | BackstagePost>

channels

Returns all channels in the feed.

Returns: ObservedArray<Channel | GridChannel>

playlists

Returns all playlists in the feed.

Returns: ObservedArray<Playlist | GridPlaylist>

shelves

Returns all shelves in the feed.

Returns: ObservedArray<Shelf | RichShelf | ReelShelf>

memo

Returns the memoized feed contents.

Returns: Memo

page_contents

Returns the page contents.

Returns: SectionList | MusicQueue | RichGrid | ReloadContinuationItemsCommand

secondary_contents

Returns the secondary contents node.

Returns: SuperParsedResult<YTNode> | undefined

page

Returns the original InnerTube response, parsed and sanitized.

Returns: T extends IParsedResponse = IParsedResponse

has_continuation

Returns whether the feed has a continuation.

Returns: boolean

getContinuationData()

Returns the continuation data.

Returns: Promise<T | undefined>

getContinuation()

Retrieves the feed's continuation.

Returns: Promise<Feed<T>>

getShelf(title)

Gets a shelf by its title.

Returns: Shelf | RichShelf | ReelShelf | undefined

Param Type Description
title string The title of the shelf to get