youtubei.js / YT / History
Class: History
Defined in: src/parser/youtube/History.ts:23
Extends
Constructors
Constructor
new History(
actions,data,already_parsed?):History
Defined in: src/parser/youtube/History.ts:27
Parameters
actions
data
already_parsed?
boolean = false
Returns
History
Overrides
Properties
feed_actions
feed_actions:
BrowseFeedActions
Defined in: src/parser/youtube/History.ts:25
sections
sections:
ObservedArray<ItemSection>
Defined in: src/parser/youtube/History.ts:24
Accessors
actions
Get Signature
get actions():
Actions
Defined in: src/core/mixins/Feed.ts:184
Returns
Inherited from
channels
Get Signature
get channels():
ObservedArray<Channel|GridChannel>
Defined in: src/core/mixins/Feed.ts:130
Get all the channels in the feed
Returns
ObservedArray<Channel | GridChannel>
Inherited from
has_continuation
Get Signature
get has_continuation():
boolean
Defined in: src/core/mixins/Feed.ts:198
Checks if the feed has continuation.
Returns
boolean
Inherited from
memo
Get Signature
get memo():
Memo
Defined in: src/core/mixins/Feed.ts:141
Returns
Inherited from
page
Get Signature
get page():
T
Defined in: src/core/mixins/Feed.ts:191
Get the original page data
Returns
T
Inherited from
page_contents
Get Signature
get page_contents():
SectionList|MusicQueue|RichGrid|Message|ReloadContinuationItemsCommand
Defined in: src/core/mixins/Feed.ts:148
Returns contents from the page.
Returns
SectionList | MusicQueue | RichGrid | Message | ReloadContinuationItemsCommand
Inherited from
playlists
Get Signature
get playlists():
ObservedArray<GridPlaylist|GridShow|LockupView|Playlist>
Defined in: src/core/mixins/Feed.ts:137
Get all playlists in the feed
Returns
ObservedArray<GridPlaylist | GridShow | LockupView | Playlist>
Inherited from
posts
Get Signature
get posts():
ObservedArray<BackstagePost|Post|SharedPost>
Defined in: src/core/mixins/Feed.ts:123
Get all the community posts in the feed
Returns
ObservedArray<BackstagePost | Post | SharedPost>
Inherited from
secondary_contents
Get Signature
get secondary_contents():
SectionList|BrowseFeedActions|ProfileColumn|SecondarySearchContainer|null
Defined in: src/core/mixins/Feed.ts:172
Returns secondary contents from the page.
Returns
SectionList | BrowseFeedActions | ProfileColumn | SecondarySearchContainer | null
Inherited from
shelves
Get Signature
get shelves():
ObservedArray<ReelShelf|RichShelf|Shelf>
Defined in: src/core/mixins/Feed.ts:158
Returns all segments/sections from the page.
Returns
ObservedArray<ReelShelf | RichShelf | Shelf>
Inherited from
videos
Get Signature
get videos():
ObservedArray<CompactVideo|GridVideo|LockupView|PlaylistPanelVideo|PlaylistVideo|ReelItem|ShortsLockupView|Video|WatchCardCompactVideo>
Defined in: src/core/mixins/Feed.ts:116
Get all the videos in the feed
Returns
ObservedArray<CompactVideo | GridVideo | LockupView | PlaylistPanelVideo | PlaylistVideo | ReelItem | ShortsLockupView | Video | WatchCardCompactVideo>
Inherited from
Methods
getContinuation()
getContinuation():
Promise<History>
Defined in: src/parser/youtube/History.ts:36
Retrieves next batch of contents.
Returns
Promise<History>
Overrides
getContinuationData()
getContinuationData():
Promise<IBrowseResponse|undefined>
Defined in: src/core/mixins/Feed.ts:205
Retrieves continuation data as it is.
Returns
Promise<IBrowseResponse | undefined>
Inherited from
getShelf()
Defined in: src/core/mixins/Feed.ts:165
Finds shelf by title.
Parameters
title
string
Returns
ReelShelf | RichShelf | Shelf | undefined
Inherited from
removeVideo()
removeVideo(
video_id,pages_to_load?):Promise<ApiResponse|undefined>
Defined in: src/parser/youtube/History.ts:64
Removes a video from watch history.
Parameters
video_id
string
pages_to_load?
number = 1
Returns
Promise<ApiResponse | undefined>
search()
search(
query):Promise<History>
Defined in: src/parser/youtube/History.ts:47
Searches the watch history feed using the feed actions search box.
Parameters
query
string
The search query.
Returns
Promise<History>
getPlaylistsFromMemo()
staticgetPlaylistsFromMemo(memo):ObservedArray<GridPlaylist|GridShow|LockupView|Playlist>
Defined in: src/core/mixins/Feed.ts:98
Get all playlists on a given page via memo
Parameters
memo
Returns
ObservedArray<GridPlaylist | GridShow | LockupView | Playlist>
Inherited from
getVideosFromMemo()
staticgetVideosFromMemo(memo):ObservedArray<CompactVideo|GridVideo|LockupView|PlaylistPanelVideo|PlaylistVideo|ReelItem|ShortsLockupView|Video|WatchCardCompactVideo>
Defined in: src/core/mixins/Feed.ts:81
Get all videos on a given page via memo
Parameters
memo
Returns
ObservedArray<CompactVideo | GridVideo | LockupView | PlaylistPanelVideo | PlaylistVideo | ReelItem | ShortsLockupView | Video | WatchCardCompactVideo>