Skip to content

Commit

Permalink
fix(VideoSecondaryInfo): Parse show_more_text and show_less_text
Browse files Browse the repository at this point in the history
…correctly
  • Loading branch information
LuanRT committed Nov 25, 2024
1 parent ed8d43a commit 790f817
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/parser/classes/VideoSecondaryInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;
}
Expand Down

0 comments on commit 790f817

Please sign in to comment.