Skip to content

Commit

Permalink
feat(parser): Add animated_image to PageHeaderView
Browse files Browse the repository at this point in the history
  • Loading branch information
absidue committed Nov 25, 2024
1 parent c2b2d7a commit d930a57
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 d930a57

Please sign in to comment.