From 790f8172fc2bbdbf17f16b04a2676fd9088d8878 Mon Sep 17 00:00:00 2001 From: Luan Date: Mon, 25 Nov 2024 05:16:08 -0300 Subject: [PATCH] fix(VideoSecondaryInfo): Parse `show_more_text` and `show_less_text` correctly --- src/parser/classes/VideoSecondaryInfo.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/parser/classes/VideoSecondaryInfo.ts b/src/parser/classes/VideoSecondaryInfo.ts index bfdcf1a28..64581c132 100644 --- a/src/parser/classes/VideoSecondaryInfo.ts +++ b/src/parser/classes/VideoSecondaryInfo.ts @@ -13,8 +13,8 @@ export default class VideoSecondaryInfo extends YTNode { description: Text; subscribe_button: SubscribeButton | Button | null; metadata: MetadataRowContainer | null; - show_more_text: string; - show_less_text: string; + show_more_text: Text; + show_less_text: Text; default_expanded: string; description_collapsed_lines: string; @@ -29,8 +29,8 @@ export default class VideoSecondaryInfo extends YTNode { this.subscribe_button = Parser.parseItem(data.subscribeButton, [ SubscribeButton, Button ]); this.metadata = Parser.parseItem(data.metadataRowContainer, MetadataRowContainer); - this.show_more_text = data.showMoreText; - this.show_less_text = data.showLessText; + this.show_more_text = new Text(data.showMoreText); + this.show_less_text = new Text(data.showLessText); this.default_expanded = data.defaultExpanded; this.description_collapsed_lines = data.descriptionCollapsedLines; }