From 59a335018c5380a1ceee561009514301fb0f9d28 Mon Sep 17 00:00:00 2001 From: absidue <48293849+absidue@users.noreply.github.com> Date: Wed, 1 Feb 2023 18:24:30 +0100 Subject: [PATCH] fix(TopicChannelDetails): avatar and subtitle parsing --- src/parser/classes/TopicChannelDetails.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/parser/classes/TopicChannelDetails.ts b/src/parser/classes/TopicChannelDetails.ts index eb22f63ab..07a78b077 100644 --- a/src/parser/classes/TopicChannelDetails.ts +++ b/src/parser/classes/TopicChannelDetails.ts @@ -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(data.subscribeButton, SubscribeButton); this.endpoint = new NavigationEndpoint(data.navigationEndpoint); }