Skip to content

Commit

Permalink
feat(PageHeaderView): Parse heroImage
Browse files Browse the repository at this point in the history
  • Loading branch information
LuanRT committed Dec 31, 2024
1 parent c2dd803 commit a602a31
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 @@ -15,6 +15,7 @@ export default class PageHeaderView extends YTNode {
title: DynamicTextView | null;
image: ContentPreviewImageView | DecoratedAvatarView | null;
animated_image: ContentPreviewImageView | null;
hero_image: ContentPreviewImageView | null;
metadata: ContentMetadataView | null;
actions: FlexibleActionsView | null;
description: DescriptionPreviewView | null;
Expand All @@ -26,6 +27,7 @@ export default class PageHeaderView extends YTNode {
this.title = Parser.parseItem(data.title, DynamicTextView);
this.image = Parser.parseItem(data.image, [ ContentPreviewImageView, DecoratedAvatarView ]);
this.animated_image = Parser.parseItem(data.animatedImage, ContentPreviewImageView);
this.hero_image = Parser.parseItem(data.heroImage, 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 a602a31

Please sign in to comment.