youtubei.js / YTNodes / MusicResponsiveListItem
Class: MusicResponsiveListItem
Defined in: src/parser/classes/MusicResponsiveListItem.ts:29
Extends
Constructors
Constructor
new MusicResponsiveListItem(
data):MusicResponsiveListItem
Defined in: src/parser/classes/MusicResponsiveListItem.ts:83
Parameters
data
Returns
MusicResponsiveListItem
Overrides
Properties
album?
optionalalbum?:object
Defined in: src/parser/classes/MusicResponsiveListItem.ts:50
endpoint?
optionalendpoint?:NavigationEndpoint
id?
optionalid?:string
name
name:
string
artists?
optionalartists?:object[]
Defined in: src/parser/classes/MusicResponsiveListItem.ts:56
channel_id?
optionalchannel_id?:string
endpoint?
optionalendpoint?:NavigationEndpoint
name
name:
string
author?
optionalauthor?:object
Defined in: src/parser/classes/MusicResponsiveListItem.ts:75
channel_id?
optionalchannel_id?:string
endpoint?
optionalendpoint?:NavigationEndpoint
name
name:
string
authors?
optionalauthors?:object[]
Defined in: src/parser/classes/MusicResponsiveListItem.ts:63
channel_id?
optionalchannel_id?:string
endpoint?
optionalendpoint?:NavigationEndpoint
name
name:
string
badges?
optionalbadges?:ObservedArray<YTNode>
Defined in: src/parser/classes/MusicResponsiveListItem.ts:39
duration?
optionalduration?:object
Defined in: src/parser/classes/MusicResponsiveListItem.ts:45
seconds
seconds:
number
text
text:
string
endpoint?
optionalendpoint?:NavigationEndpoint
Defined in: src/parser/classes/MusicResponsiveListItem.ts:35
fixed_columns
fixed_columns:
ObservedArray<MusicResponsiveListItemFixedColumn>
Defined in: src/parser/classes/MusicResponsiveListItem.ts:33
flex_columns
flex_columns:
ObservedArray<MusicResponsiveListItemFlexColumn>
Defined in: src/parser/classes/MusicResponsiveListItem.ts:32
id?
optionalid?:string
Defined in: src/parser/classes/MusicResponsiveListItem.ts:43
index?
optionalindex?:Text
Defined in: src/parser/classes/MusicResponsiveListItem.ts:37
item_count?
optionalitem_count?:string
Defined in: src/parser/classes/MusicResponsiveListItem.ts:80
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:36
menu?
optionalmenu?:Menu|null
Defined in: src/parser/classes/MusicResponsiveListItem.ts:40
name?
optionalname?:string
Defined in: src/parser/classes/MusicResponsiveListItem.ts:69
overlay?
optionaloverlay?:MusicItemThumbnailOverlay|null
Defined in: src/parser/classes/MusicResponsiveListItem.ts:41
song_count?
optionalsong_count?:string
Defined in: src/parser/classes/MusicResponsiveListItem.ts:72
subscribers?
optionalsubscribers?:string
Defined in: src/parser/classes/MusicResponsiveListItem.ts:71
subtitle?
optionalsubtitle?:Text
Defined in: src/parser/classes/MusicResponsiveListItem.ts:70
thumbnail?
optionalthumbnail?:MusicThumbnail|null
Defined in: src/parser/classes/MusicResponsiveListItem.ts:38
title?
optionaltitle?:string
Defined in: src/parser/classes/MusicResponsiveListItem.ts:44
type
readonlytype:string
Defined in: src/parser/helpers.ts:8
Inherited from
views?
optionalviews?:string
Defined in: src/parser/classes/MusicResponsiveListItem.ts:62
year?
optionalyear?:string
Defined in: src/parser/classes/MusicResponsiveListItem.ts:81
type
statictype:string='MusicResponsiveListItem'
Defined in: src/parser/classes/MusicResponsiveListItem.ts:30
Overrides
Accessors
thumbnails
Get Signature
get thumbnails():
Thumbnail[]
Defined in: src/parser/classes/MusicResponsiveListItem.ts:338
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