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
Post a Comment