From 0affbf8dd2e53ee93fdecc15393f7fdde6b2b46c Mon Sep 17 00:00:00 2001 From: absidue <48293849+absidue@users.noreply.github.com> Date: Sun, 17 Nov 2024 23:25:15 +0100 Subject: [PATCH] feat(parser): Add optional image property to LockupMetadataView --- 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