def post_video(self, videoUrl, name=None, ingestMedia=True):
        '''Post and optionally ingest media from the specified URL'''
        if name is None:
            name = os.path.basename(videoUrl)

        url = '/videos'
        data = {'name': name}
        new_video = self._make_request(self.CMS_Server, 'POST', url, data=data)
        if ingestMedia:
            self.ingest_video(new_video['id'], videoUrl)
        return new_video
def post_video ( self , videoUrl , name = None , ingestMedia = True ) : if name is None : name = os . path . basename ( videoUrl ) url = '/videos' data = { 'name' : name } new_video = self . _make_request ( self . CMS_Server , 'POST' , url , data = data ) if ingestMedia : self . ingest_video ( new_video [ 'id' ] , videoUrl ) return new_video
Post and optionally ingest media from the specified URL