youtubei.js / YTMusic / Library
Class: Library
Constructors
new Library()
new Library(
response
,actions
):Library
Parameters
• response: ApiResponse
• actions: Actions
Returns
Defined in
src/parser/ytmusic/Library.ts:28
Properties
contents?
optional
contents:ObservedArray
<MusicShelf
|Grid
>
Defined in
src/parser/ytmusic/Library.ts:26
header?
optional
header:MusicSideAlignedItem
Defined in
src/parser/ytmusic/Library.ts:25
Accessors
filters
get
filters():string
[]
Returns
string
[]
Defined in
src/parser/ytmusic/Library.ts:141
has_continuation
get
has_continuation():boolean
Returns
boolean
Defined in
src/parser/ytmusic/Library.ts:131
page
get
page():IBrowseResponse
Returns
Defined in
src/parser/ytmusic/Library.ts:145
sort_options
get
sort_options():string
[]
Returns
string
[]
Defined in
src/parser/ytmusic/Library.ts:135
Methods
applyFilter()
applyFilter(
filter
):Promise
<Library
>
Applies given filter to the library.
Parameters
• filter: string
| ChipCloudChip
Returns
Promise
<Library
>
Defined in
src/parser/ytmusic/Library.ts:93
applySort()
applySort(
sort_by
):Promise
<Library
>
Applies given sort option to the library items.
Parameters
• sort_by: string
| MusicMultiSelectMenuItem
Returns
Promise
<Library
>
Defined in
src/parser/ytmusic/Library.ts:43
getContinuation()
getContinuation():
Promise
<LibraryContinuation
>
Retrieves continuation of the library items.
Returns
Promise
<LibraryContinuation
>