From 7c18772a6d9be01e56fb2389d59e80b7bd1de239 Mon Sep 17 00:00:00 2001 From: ChunkyProgrammer <78101139+ChunkyProgrammer@users.noreply.github.com> Date: Sun, 17 Nov 2024 13:05:11 -0500 Subject: [PATCH] feat(Parser): add support for parsing subtitle for `RichShelf` --- src/parser/classes/RichShelf.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/parser/classes/RichShelf.ts b/src/parser/classes/RichShelf.ts index b34591b2a..962697dbe 100644 --- a/src/parser/classes/RichShelf.ts +++ b/src/parser/classes/RichShelf.ts @@ -9,6 +9,7 @@ export default class RichShelf extends YTNode { title: Text; contents: ObservedArray; endpoint?: NavigationEndpoint; + subtitle?: Text; constructor(data: RawNode) { super(); @@ -18,5 +19,9 @@ export default class RichShelf extends YTNode { if (Reflect.has(data, 'endpoint')) { this.endpoint = new NavigationEndpoint(data.endpoint); } + + if (Reflect.has(data, 'subtitle')) { + this.subtitle = new Text(data.subtitle); + } } } \ No newline at end of file