c# - How to access to the value of attribute "permission" of yt:accessControl of YouTube -
how access value of attribute "permission" of yt:accesscontrol
reason : need exclude videos not embdable or private.
i.e
<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'/>
what have in code :
//feed<video> feed foreach (video entry in feed.entries) { positionnoonimport++; anyrecordfound = true; string catg = ""; int = 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 tried accesscontrol //entry.accesscontrol :: option not available or not accessible //entry. ??? might missing .. // how value of accesscontrol tag, // , unable fetch/get <noembed/> tag..
Comments
Post a Comment