Skip to content

Commit

Permalink
feat(parser): Add animated_image to PageHeaderView (#819)
Browse files Browse the repository at this point in the history
  • Loading branch information
absidue authored Nov 26, 2024
1 parent 92acd6c commit 8e50ebd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/parser/classes/PageHeaderView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export default class PageHeaderView extends YTNode {

title: DynamicTextView | null;
image: ContentPreviewImageView | DecoratedAvatarView | null;
animated_image: ContentPreviewImageView | null;
metadata: ContentMetadataView | null;
actions: FlexibleActionsView | null;
description: DescriptionPreviewView | null;
Expand All @@ -24,6 +25,7 @@ export default class PageHeaderView extends YTNode {
super();
this.title = Parser.parseItem(data.title, DynamicTextView);
this.image = Parser.parseItem(data.image, [ ContentPreviewImageView, DecoratedAvatarView ]);
this.animated_image = Parser.parseItem(data.animatedImage, ContentPreviewImageView);
this.metadata = Parser.parseItem(data.metadata, ContentMetadataView);
this.actions = Parser.parseItem(data.actions, FlexibleActionsView);
this.description = Parser.parseItem(data.description, DescriptionPreviewView);
Expand Down

0 comments on commit 8e50ebd

Please sign in to comment.