From 038efff17f3b12d80619c8990ca880e919d2bfe5 Mon Sep 17 00:00:00 2001 From: ChunkyProgrammer <78101139+ChunkyProgrammer@users.noreply.github.com> Date: Tue, 19 Nov 2024 02:43:03 -0500 Subject: [PATCH] feat(Parser): add support for parsing subtitle for `RichShelf` (#805) --- 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