From 091429921530d65daf8f5b281c7c54117ee9a474 Mon Sep 17 00:00:00 2001 From: absidue <48293849+absidue@users.noreply.github.com> Date: Tue, 19 Nov 2024 08:50:28 +0100 Subject: [PATCH] feat(parser): Add optional image property to LockupMetadataView (#806) --- src/parser/classes/LockupMetadataView.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/parser/classes/LockupMetadataView.ts b/src/parser/classes/LockupMetadataView.ts index d3ed30ddb..e2bbc6653 100644 --- a/src/parser/classes/LockupMetadataView.ts +++ b/src/parser/classes/LockupMetadataView.ts @@ -1,6 +1,7 @@ import { YTNode } from '../helpers.js'; import { Parser, type RawNode } from '../index.js'; import ContentMetadataView from './ContentMetadataView.js'; +import DecoratedAvatarView from './DecoratedAvatarView.js'; import Text from './misc/Text.js'; export default class LockupMetadataView extends YTNode { @@ -8,11 +9,13 @@ export default class LockupMetadataView extends YTNode { title: Text; metadata: ContentMetadataView | null; + image: DecoratedAvatarView | null; constructor(data: RawNode) { super(); this.title = Text.fromAttributed(data.title); this.metadata = Parser.parseItem(data.metadata, ContentMetadataView); + this.image = Parser.parseItem(data.image, DecoratedAvatarView); } } \ No newline at end of file