diff --git a/Manager.YouTube/Parsers/Json/ChannelJsonParser.cs b/Manager.YouTube/Parsers/Json/ChannelJsonParser.cs index 7c528dd..aceafa1 100644 --- a/Manager.YouTube/Parsers/Json/ChannelJsonParser.cs +++ b/Manager.YouTube/Parsers/Json/ChannelJsonParser.cs @@ -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);