我想获得Youtube Channel的图片。获取视频图片非常简单:http://img.youtube.com/vi/“+ item.VideoId +”/ mqdefault.jpg
答案 0 :(得分:0)
解决。
var json = new WebClient().DownloadString("http://gdata.youtube.com/feeds/api/users/"+YT_CHANNEL_NAME);
string str = "thumbnail url='";
string ImagePic = json.Substring(json.IndexOf("thumbnail url") + str.Length);
if (ImagePic.Contains("'"))
{
ImagePic = ImagePic.Remove(ImagePic.IndexOf("'"));
ImageChannel.ImageUrl = ImagePic;
}