Skip to content

Commit

Permalink
fix(TopicChannelDetails): avatar and subtitle parsing (#302)
Browse files Browse the repository at this point in the history
  • Loading branch information
absidue authored Feb 1, 2023
1 parent e82e23d commit d612590
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/parser/classes/TopicChannelDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ class TopicChannelDetails extends YTNode {
super();

this.title = new Text(data.title);
this.avatar = Thumbnail.fromResponse(data.thumbnail);
this.subtitle = new Text(data.title);
this.avatar = Thumbnail.fromResponse(data.thumbnail ?? data.avatar);
this.subtitle = new Text(data.subtitle);
this.subscribe_button = Parser.parseItem<SubscribeButton>(data.subscribeButton, SubscribeButton);
this.endpoint = new NavigationEndpoint(data.navigationEndpoint);
}
Expand Down

0 comments on commit d612590

Please sign in to comment.