[CHANGE] Get username from other json property
This commit is contained in:
parent
680b6d2cc9
commit
b3861b7cd9
1 changed files with 6 additions and 5 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue