[CHANGE] Get username from other json property
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user