Files
YouTube.js/docs/api/namespaces/YTMusic/classes/Recap.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

74 lines
2.0 KiB
Markdown

[youtubei.js](../../../README.md) / [YTMusic](../README.md) / Recap
# Class: Recap
## Constructors
### new Recap()
> **new Recap**(`response`, `actions`): [`Recap`](Recap.md)
#### Parameters
**response**: [`ApiResponse`](../../../interfaces/ApiResponse.md)
**actions**: [`Actions`](../../../classes/Actions.md)
#### Returns
[`Recap`](Recap.md)
#### Defined in
[src/parser/ytmusic/Recap.ts:26](https://github.com/LuanRT/YouTube.js/blob/af92984523f90200a18314b94478a2697c9deab0/src/parser/ytmusic/Recap.ts#L26)
## Properties
### header?
> `optional` **header**: [`MusicHeader`](../../YTNodes/classes/MusicHeader.md) \| [`HighlightsCarousel`](../../YTNodes/classes/HighlightsCarousel.md)
#### Defined in
[src/parser/ytmusic/Recap.ts:23](https://github.com/LuanRT/YouTube.js/blob/af92984523f90200a18314b94478a2697c9deab0/src/parser/ytmusic/Recap.ts#L23)
***
### sections?
> `optional` **sections**: [`ObservedArray`](../../Helpers/type-aliases/ObservedArray.md)\<[`ItemSection`](../../YTNodes/classes/ItemSection.md) \| [`Message`](../../YTNodes/classes/Message.md) \| [`MusicCarouselShelf`](../../YTNodes/classes/MusicCarouselShelf.md)\>
#### Defined in
[src/parser/ytmusic/Recap.ts:24](https://github.com/LuanRT/YouTube.js/blob/af92984523f90200a18314b94478a2697c9deab0/src/parser/ytmusic/Recap.ts#L24)
## Accessors
### page
> `get` **page**(): [`IBrowseResponse`](../../APIResponseTypes/type-aliases/IBrowseResponse.md)
#### Returns
[`IBrowseResponse`](../../APIResponseTypes/type-aliases/IBrowseResponse.md)
#### Defined in
[src/parser/ytmusic/Recap.ts:60](https://github.com/LuanRT/YouTube.js/blob/af92984523f90200a18314b94478a2697c9deab0/src/parser/ytmusic/Recap.ts#L60)
## Methods
### getPlaylist()
> **getPlaylist**(): `Promise`\<[`Playlist`](Playlist.md)\>
Retrieves recap playlist.
#### Returns
`Promise`\<[`Playlist`](Playlist.md)\>
#### Defined in
[src/parser/ytmusic/Recap.ts:47](https://github.com/LuanRT/YouTube.js/blob/af92984523f90200a18314b94478a2697c9deab0/src/parser/ytmusic/Recap.ts#L47)