[CHANGE] Get username from other json property

This commit is contained in:
max
2025-09-08 21:40:54 +02:00
parent 680b6d2cc9
commit b3861b7cd9

View File

@@ -28,12 +28,13 @@ public static class ChannelJsonParser
channel.NoIndex = microformat.GetProperty("noindex").GetBoolean();
channel.Unlisted = microformat.GetProperty("unlisted").GetBoolean();
channel.FamilySafe = microformat.GetProperty("familySafe").GetBoolean();
channel.ChannelName = microformat.GetProperty("title").GetString();
var avatarThumbnails = rootDoc
var channelMetadata = rootDoc
.GetProperty("metadata")
.GetProperty("channelMetadataRenderer")
.GetProperty("avatar")
.GetProperty("channelMetadataRenderer");
channel.ChannelName = channelMetadata.GetProperty("title").GetString();
var avatarThumbnails = channelMetadata.GetProperty("avatar")
.GetProperty("thumbnails")
.EnumerateArray();
channel.AvatarImages = JsonParser.ParseImages(avatarThumbnails);