#NEWLINE# def _upload_to_youtube( self , name , path ) : #NEWLINE# #INDENT# '\n        Uploads the file from the given path to youtube\n\n        Parameter\n        ---------\n        name : str\n            Name of the file (short caption)\n        path : str\n            Path to tempory file\n\n        Return\n        ------\n        str, str\n            Youtube video id, Youtube SWF url\n        ' #NEWLINE# youtube = Youtube ( ) #NEWLINE# youtube . authenticate ( ) #NEWLINE# video_entry = youtube . upload_direct ( path , name , access_control = AccessControl . Unlisted ) #NEWLINE# return ( video_entry . id . text . split ( '/' ) [ ( - 1 ) ] , video_entry . GetSwfUrl ( ) )