我怎样才能得到缩略图
如果您在此处查看源提要:
http://feeds.bbci.co.uk/news/world/middle_east/rss.xml
我尝试了以下方法,但最后一部分不适用于媒体:thumbnail
XDocument feedXML = XDocument.Load("http://feeds.bbci.co.uk/news/world/middle_east/rss.xml");
var feeds = from feed in feedXML.Descendants("item")
select new
{
Title = feed.Element("title").Value,
Link = feed.Element("link").Value,
Description = feed.Element("description").Value,
pubDate = feed.Element("pubDate").Value,
guid = feed.Element("guid").Value,
thumbnail = feed.Element("media:thumbnail").Attribute("url").Value
};