digitaldavidg / gdata-python-client

Automatically exported from code.google.com/p/gdata-python-client
0 stars 0 forks source link

Support YouTube access controls #350

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
As specified here, using the {yt}:accessControl element:

http://code.google.com/apis/youtube/2.0/developers_guide_protocol_uploading_vide
os.html#Setting_Access_Controls

Is there any way to work around this not currently existing? e.g. adding
the XML element to the request manually?

Original issue reported on code.google.com by porg3s on 17 Mar 2010 at 3:27

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I realise this is an old issue - just posting a comment as I needed a 
workaround myself just now. The workaround is possible since the gdata API 
allows arbritrary XML elements to be added to the request via the 
extension_elements parameter e.g. to make a video "unlisted"

acl = 
[ExtensionElement('accessControl',namespace=YOUTUBE_NAMESPACE,attributes={'actio
n':'list','permission':'denied'})]
video_entry = 
gdata.youtube.YouTubeVideoEntry(media=my_media_group,extension_elements=acl)

Full listing attached.

Original comment by inapprop...@gmail.com on 18 Sep 2010 at 8:23

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by afs...@google.com on 7 Oct 2011 at 11:43