[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.NoIndex = microformat.GetProperty("noindex").GetBoolean();
|
||||||
channel.Unlisted = microformat.GetProperty("unlisted").GetBoolean();
|
channel.Unlisted = microformat.GetProperty("unlisted").GetBoolean();
|
||||||
channel.FamilySafe = microformat.GetProperty("familySafe").GetBoolean();
|
channel.FamilySafe = microformat.GetProperty("familySafe").GetBoolean();
|
||||||
channel.ChannelName = microformat.GetProperty("title").GetString();
|
|
||||||
|
var channelMetadata = rootDoc
|
||||||
var avatarThumbnails = rootDoc
|
|
||||||
.GetProperty("metadata")
|
.GetProperty("metadata")
|
||||||
.GetProperty("channelMetadataRenderer")
|
.GetProperty("channelMetadataRenderer");
|
||||||
.GetProperty("avatar")
|
channel.ChannelName = channelMetadata.GetProperty("title").GetString();
|
||||||
|
|
||||||
|
var avatarThumbnails = channelMetadata.GetProperty("avatar")
|
||||||
.GetProperty("thumbnails")
|
.GetProperty("thumbnails")
|
||||||
.EnumerateArray();
|
.EnumerateArray();
|
||||||
channel.AvatarImages = JsonParser.ParseImages(avatarThumbnails);
|
channel.AvatarImages = JsonParser.ParseImages(avatarThumbnails);
|
||||||
|
Reference in New Issue
Block a user