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?
optional
album:object
Defined in: src/parser/classes/MusicResponsiveListItem.ts:44
endpoint?
optional
endpoint:NavigationEndpoint
id?
optional
id:string
name
name:
string
artists?
optional
artists:object
[]
Defined in: src/parser/classes/MusicResponsiveListItem.ts:50
channel_id?
optional
channel_id:string
endpoint?
optional
endpoint:NavigationEndpoint
name
name:
string
author?
optional
author:object
Defined in: src/parser/classes/MusicResponsiveListItem.ts:69
channel_id?
optional
channel_id:string
endpoint?
optional
endpoint:NavigationEndpoint
name
name:
string
authors?
optional
authors:object
[]
Defined in: src/parser/classes/MusicResponsiveListItem.ts:57
channel_id?
optional
channel_id:string
endpoint?
optional
endpoint:NavigationEndpoint
name
name:
string
badges?
optional
badges:ObservedArray
<YTNode
>
Defined in: src/parser/classes/MusicResponsiveListItem.ts:33
duration?
optional
duration:object
Defined in: src/parser/classes/MusicResponsiveListItem.ts:39
seconds
seconds:
number
text
text:
string
endpoint?
optional
endpoint: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?
optional
id:string
Defined in: src/parser/classes/MusicResponsiveListItem.ts:37
index?
optional
index:Text
Defined in: src/parser/classes/MusicResponsiveListItem.ts:31
item_count?
optional
item_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?
optional
menu:Menu
|null
Defined in: src/parser/classes/MusicResponsiveListItem.ts:34
name?
optional
name:string
Defined in: src/parser/classes/MusicResponsiveListItem.ts:63
overlay?
optional
overlay:MusicItemThumbnailOverlay
|null
Defined in: src/parser/classes/MusicResponsiveListItem.ts:35
song_count?
optional
song_count:string
Defined in: src/parser/classes/MusicResponsiveListItem.ts:66
subscribers?
optional
subscribers:string
Defined in: src/parser/classes/MusicResponsiveListItem.ts:65
subtitle?
optional
subtitle:Text
Defined in: src/parser/classes/MusicResponsiveListItem.ts:64
thumbnail?
optional
thumbnail:MusicThumbnail
|null
Defined in: src/parser/classes/MusicResponsiveListItem.ts:32
title?
optional
title:string
Defined in: src/parser/classes/MusicResponsiveListItem.ts:38
type
readonly
type:string
Defined in: src/parser/helpers.ts:8
Inherited from
views?
optional
views:string
Defined in: src/parser/classes/MusicResponsiveListItem.ts:56
year?
optional
year:string
Defined in: src/parser/classes/MusicResponsiveListItem.ts:75
type
static
type: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