Upload a video to Youtube using the python API and set it as unlisted -


i'm using python client library upload videos youtube.

i need set it's privacy unlisted, api page shows examples of how set them private.

anyone knows how change privacy control of these videos?

thanks!

the xml element need described in http://code.google.com/apis/youtube/2.0/reference.html#youtube_data_api_tag_yt:accesscontrol

following api documentation, can build element follows:

from gdata.media import youtube_namespace atom import extensionelement  # set video unlisted kwargs = {     "namespace": youtube_namespace,     "attributes": {'action': 'list', 'permission': 'denied'}, } extension = ([extensionelement('accesscontrol', **kwargs)])  # create gdata.youtube.youtubevideoentry video_entry = gdata.youtube.youtubevideoentry(media=my_media_group,     geo=where, extension_elements=extension) 

Comments

Popular posts from this blog

iphone - Using nested NSDictionary with Picker -

javascript - Iterate over array and calculate average values of array-parts -

php - accessing mysql using different server to which db connection data is located -