mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-13 09:32:12 +00:00
feat(parser): Add animated_image to PageHeaderView (#819)
This commit is contained in:
@@ -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;
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user