Files
YouTube.js/docs/api/namespaces/YTMusic/classes/Album.md
Luan 25d0876b91 refactor(Player)!: Use AST-based JS extraction with side-effect safe code emission (#1052)
* chore(deps): Add `meriyah`

* feat(utils): Implement AST-based JS extractors

* chore(utils): Remove old ast walker code

* fix(Player): Migrate js extraction logic

* chore(JsExtractor): Fix typo in tsdoc

* perf(JsAnalyzer): Simplify main AST analysis logic

* fix(JsAnalyzer): Change `break` to `return` in AST matching logic

* chore: Update docs

* chore: Don't export `PlayerInitializationOptions`

* chore(evaluate): Update error message to include doc link

* perf: Use a `for-loop` to find iife
2025-10-12 09:08:51 -03:00

86 lines
2.3 KiB
Markdown

[youtubei.js](../../../README.md) / [YTMusic](../README.md) / Album
# Class: Album
## Constructors
### new Album()
> **new Album**(`response`): [`Album`](Album.md)
#### Parameters
**response**: [`ApiResponse`](../../../interfaces/ApiResponse.md)
#### Returns
[`Album`](Album.md)
#### Defined in
[src/parser/ytmusic/Album.ts:24](https://github.com/LuanRT/YouTube.js/blob/af92984523f90200a18314b94478a2697c9deab0/src/parser/ytmusic/Album.ts#L24)
## Properties
### background?
> `optional` **background**: [`MusicThumbnail`](../../YTNodes/classes/MusicThumbnail.md)
#### Defined in
[src/parser/ytmusic/Album.ts:21](https://github.com/LuanRT/YouTube.js/blob/af92984523f90200a18314b94478a2697c9deab0/src/parser/ytmusic/Album.ts#L21)
***
### contents
> **contents**: [`ObservedArray`](../../Helpers/type-aliases/ObservedArray.md)\<[`MusicResponsiveListItem`](../../YTNodes/classes/MusicResponsiveListItem.md)\>
#### Defined in
[src/parser/ytmusic/Album.ts:19](https://github.com/LuanRT/YouTube.js/blob/af92984523f90200a18314b94478a2697c9deab0/src/parser/ytmusic/Album.ts#L19)
***
### header?
> `optional` **header**: [`MusicDetailHeader`](../../YTNodes/classes/MusicDetailHeader.md) \| [`MusicResponsiveHeader`](../../YTNodes/classes/MusicResponsiveHeader.md)
#### Defined in
[src/parser/ytmusic/Album.ts:18](https://github.com/LuanRT/YouTube.js/blob/af92984523f90200a18314b94478a2697c9deab0/src/parser/ytmusic/Album.ts#L18)
***
### sections
> **sections**: [`ObservedArray`](../../Helpers/type-aliases/ObservedArray.md)\<[`MusicCarouselShelf`](../../YTNodes/classes/MusicCarouselShelf.md)\>
#### Defined in
[src/parser/ytmusic/Album.ts:20](https://github.com/LuanRT/YouTube.js/blob/af92984523f90200a18314b94478a2697c9deab0/src/parser/ytmusic/Album.ts#L20)
***
### url?
> `optional` **url**: `string`
#### Defined in
[src/parser/ytmusic/Album.ts:22](https://github.com/LuanRT/YouTube.js/blob/af92984523f90200a18314b94478a2697c9deab0/src/parser/ytmusic/Album.ts#L22)
## Accessors
### page
> `get` **page**(): [`IBrowseResponse`](../../APIResponseTypes/type-aliases/IBrowseResponse.md)
#### Returns
[`IBrowseResponse`](../../APIResponseTypes/type-aliases/IBrowseResponse.md)
#### Defined in
[src/parser/ytmusic/Album.ts:37](https://github.com/LuanRT/YouTube.js/blob/af92984523f90200a18314b94478a2697c9deab0/src/parser/ytmusic/Album.ts#L37)