mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-16 11:02:10 +00:00
* feat: add ItemSectionTab and related parsers * feat: add `continuation` to `Grid`parser class * feat (ytmusic): implement music#getLibrary() * Improve album fetch in `MusicResponsiveListItem` * music#Library: return [] for empty results * feat: add `Dropdown` & `DropdownItem` parsers * feat: add `CreatePlaylistDialog` parser * feat: add `create_playlist` to NavigationEndpoint * feat: add `AutomixPreviewVideo` parser * feat: improve parsing of items * fix: `PlaylistPanel` continuation * feat: more args in `Actions#next` * feat: add `PlaylistPanelContinuation` to `Parser` * chore: update parser-map * music#Library: refactor + add shuffle songs opt * feat: add `endpoint` to `DropdownItem` * feat: add `end_items` to `ItemSectionTabbedHeader` * feat(ytmusic): add `sort_by` to `music#Library`
19 lines
535 B
TypeScript
19 lines
535 B
TypeScript
import { YTNode } from '../helpers';
|
|
import NavigationEndpoint from './NavigationEndpoint';
|
|
|
|
class AutomixPreviewVideo extends YTNode {
|
|
static type = 'AutomixPreviewVideo';
|
|
|
|
playlist_video?: { endpoint: NavigationEndpoint };
|
|
|
|
constructor(data: any) {
|
|
super();
|
|
if (data?.content?.automixPlaylistVideoRenderer?.navigationEndpoint) {
|
|
this.playlist_video = {
|
|
endpoint: new NavigationEndpoint(data.content.automixPlaylistVideoRenderer.navigationEndpoint)
|
|
};
|
|
}
|
|
}
|
|
}
|
|
|
|
export default AutomixPreviewVideo; |