Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(parser): Add ChannelOwnerEmptyState #541

Merged
merged 1 commit into from
Dec 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions src/parser/classes/ChannelOwnerEmptyState.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { YTNode } from '../helpers.js';
import type { RawNode } from '../index.js';
import Text from './misc/Text.js';
import Thumbnail from './misc/Thumbnail.js';

export default class ChannelOwnerEmptyState extends YTNode {
static type = 'ChannelOwnerEmptyState';

illustration: Thumbnail[];
description: Text;

constructor(data: RawNode) {
super();
this.illustration = Thumbnail.fromResponse(data.illustration);
this.description = new Text(data.description);
}
}
1 change: 1 addition & 0 deletions src/parser/nodes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export { default as ChannelHeaderLinksView } from './classes/ChannelHeaderLinksV
export { default as ChannelMetadata } from './classes/ChannelMetadata.js';
export { default as ChannelMobileHeader } from './classes/ChannelMobileHeader.js';
export { default as ChannelOptions } from './classes/ChannelOptions.js';
export { default as ChannelOwnerEmptyState } from './classes/ChannelOwnerEmptyState.js';
export { default as ChannelSubMenu } from './classes/ChannelSubMenu.js';
export { default as ChannelThumbnailWithLink } from './classes/ChannelThumbnailWithLink.js';
export { default as ChannelVideoPlayer } from './classes/ChannelVideoPlayer.js';
Expand Down
Loading