如何访问yt:accessControl
的属性“权限”的值原因:我需要排除不可嵌入或隐私的视频。
即
<yt:accessControl action='comment' permission='allowed'/>
<yt:accessControl action='commentVote' permission='allowed'/>
<yt:accessControl action='rate' permission='allowed'/>
<yt:accessControl action='embed' permission='allowed'/>
<yt:accessControl action='list' permission='allowed'/>
<yt:accessControl action='syndicate' permission='allowed'/>
我的代码中包含的内容:
//Feed<Video> feed
foreach (Video entry in feed.Entries)
{
positionNoOnImport++;
anyrecordFound = true;
String catg = "";
int i = 0;
foreach (AtomCategory cat in entry.Categories)
{
if (i != 0)
catg += cat.Term + ",";
i++;
}
string sec = "0";
if (entry.Media.Duration != null)
{
sec = entry.Media.Duration.Seconds;
}
// here what I tried for accessControl
//entry.AccessControl :: but this option is not available or not accessible
//entry. ??? might be something missing ..
// so how to get value of accessControl tag,
// and I also unable to fetch/Get <noembed/> tag..