youtubei.js / YTNodes / MusicResponsiveListItem
Class: MusicResponsiveListItem
Defined in: src/parser/classes/MusicResponsiveListItem.ts:23
Extends
Constructors
Constructor
new MusicResponsiveListItem(
data):MusicResponsiveListItem
Defined in: src/parser/classes/MusicResponsiveListItem.ts:77
Parameters
data
Returns
MusicResponsiveListItem
Overrides
Properties
album?
optionalalbum:object
Defined in: src/parser/classes/MusicResponsiveListItem.ts:44
endpoint?
optionalendpoint:NavigationEndpoint
id?
optionalid:string
name
name:
string
artists?
optionalartists:object[]
Defined in: src/parser/classes/MusicResponsiveListItem.ts:50
channel_id?
optionalchannel_id:string
endpoint?
optionalendpoint:NavigationEndpoint
name
name:
string
author?
optionalauthor:object
Defined in: src/parser/classes/MusicResponsiveListItem.ts:69
channel_id?
optionalchannel_id:string
endpoint?
optionalendpoint:NavigationEndpoint
name
name:
string
authors?
optionalauthors:object[]
Defined in: src/parser/classes/MusicResponsiveListItem.ts:57
channel_id?
optionalchannel_id:string
endpoint?
optionalendpoint:NavigationEndpoint
name
name:
string
badges?
optionalbadges:ObservedArray<YTNode>
Defined in: src/parser/classes/MusicResponsiveListItem.ts:33
duration?
optionalduration:object
Defined in: src/parser/classes/MusicResponsiveListItem.ts:39
seconds
seconds:
number
text
text:
string
endpoint?
optionalendpoint:NavigationEndpoint
Defined in: src/parser/classes/MusicResponsiveListItem.ts:29
fixed_columns
fixed_columns:
ObservedArray<MusicResponsiveListItemFixedColumn>
Defined in: src/parser/classes/MusicResponsiveListItem.ts:27
flex_columns
flex_columns:
ObservedArray<MusicResponsiveListItemFlexColumn>
Defined in: src/parser/classes/MusicResponsiveListItem.ts:26
id?
optionalid:string
Defined in: src/parser/classes/MusicResponsiveListItem.ts:37
index?
optionalindex:Text
Defined in: src/parser/classes/MusicResponsiveListItem.ts:31
item_count?
optionalitem_count:string
Defined in: src/parser/classes/MusicResponsiveListItem.ts:74
item_type
item_type:
"endpoint"|"unknown"|"video"|"playlist"|"album"|"artist"|"library_artist"|"non_music_track"|"song"|"podcast_show"|undefined
Defined in: src/parser/classes/MusicResponsiveListItem.ts:30
menu?
optionalmenu:Menu|null
Defined in: src/parser/classes/MusicResponsiveListItem.ts:34
name?
optionalname:string
Defined in: src/parser/classes/MusicResponsiveListItem.ts:63
overlay?
optionaloverlay:MusicItemThumbnailOverlay|null
Defined in: src/parser/classes/MusicResponsiveListItem.ts:35
song_count?
optionalsong_count:string
Defined in: src/parser/classes/MusicResponsiveListItem.ts:66
subscribers?
optionalsubscribers:string
Defined in: src/parser/classes/MusicResponsiveListItem.ts:65
subtitle?
optionalsubtitle:Text
Defined in: src/parser/classes/MusicResponsiveListItem.ts:64
thumbnail?
optionalthumbnail:MusicThumbnail|null
Defined in: src/parser/classes/MusicResponsiveListItem.ts:32
title?
optionaltitle:string
Defined in: src/parser/classes/MusicResponsiveListItem.ts:38
type
readonlytype:string
Defined in: src/parser/helpers.ts:8
Inherited from
views?
optionalviews:string
Defined in: src/parser/classes/MusicResponsiveListItem.ts:56
year?
optionalyear:string
Defined in: src/parser/classes/MusicResponsiveListItem.ts:75
type
statictype:string='MusicResponsiveListItem'
Defined in: src/parser/classes/MusicResponsiveListItem.ts:24
Overrides
Accessors
thumbnails
Get Signature
get thumbnails():
Thumbnail[]
Defined in: src/parser/classes/MusicResponsiveListItem.ts:334
Returns
Methods
as()
as<
T,K>(...types):InstanceType<K[number]>
Defined in: src/parser/helpers.ts:29
Cast to one of the given types.
Type Parameters
T
T extends YTNode
K
K extends YTNodeConstructor<T>[]
Parameters
types
...K
The types to cast to
Returns
InstanceType<K[number]>
The node cast to one of the given types
Throws
If the node is not of the given type
Inherited from
hasKey()
hasKey<
T,R>(key):this is MusicResponsiveListItem & { [k in string]: R }
Defined in: src/parser/helpers.ts:41
Check for a key without asserting the type.
Type Parameters
T
T extends string
R
R = any
Parameters
key
T
The key to check
Returns
this is MusicResponsiveListItem & { [k in string]: R }
Whether the node has the key
Inherited from
is()
is<
T,K>(...types):this is InstanceType<K[number]>
Defined in: src/parser/helpers.ts:19
Check if the node is of the given type.
Type Parameters
T
T extends YTNode
K
K extends YTNodeConstructor<T>[]
Parameters
types
...K
The type to check
Returns
this is InstanceType<K[number]>
whether the node is of the given type
Inherited from
key()
key<
T,R>(key):Maybe
Defined in: src/parser/helpers.ts:51
Assert that the node has the given key and return it.
Type Parameters
T
T extends string
R
R = any
Parameters
key
T
The key to check
Returns
The value of the key wrapped in a Maybe
Throws
If the node does not have the key