Skip to main content
Module

x/youtubei/deno.ts>YTMusic.Library

A wrapper around YouTube's internal API — reverse engineering InnerTube
Very Popular
Go to Latest
class YTMusic.Library
import { YTMusic } from "https://deno.land/x/youtubei@v9.3.0-deno/deno.ts";
const { Library } = YTMusic;

Constructors

new
Library(response: ApiResponse, actions: Actions)

Properties

optional
contents: ObservedArray<Grid | MusicShelf>
readonly
filters: string[]
readonly
has_continuation: boolean
optional
header: MusicSideAlignedItem
readonly
page: IBrowseResponse
readonly
sort_options: string[]

Methods

applyFilter(filter: string | ChipCloudChip): Promise<Library>

Applies given filter to the library.

applySort(sort_by: string | MusicMultiSelectMenuItem): Promise<Library>

Applies given sort option to the library items.

Retrieves continuation of the library items.