django_youtube/api.py
def update_video(self, video_id, title="", description="", keywords="", access_control=AccessControl.Unlisted):
        """
        Updates the video

        Authentication is required

        Params:
            entry: video entry fetch via 'fetch_video()'
            title: string
            description: string
            keywords: string

        Returns:
            a video entry on success
            None otherwise
        """

        # Raise ApiError if not authenticated
        if not self.authenticated:
            raise ApiError(_("Authentication is required"))

        entry = self.fetch_video(video_id)

        # Set Access Control
        extension = self._access_control(access_control)
        if extension:
            entry.extension_elements = extension

        if title:
            entry.media.title.text = title

        if description:
            entry.media.description.text = description

        #if keywords:
        #    entry.media.keywords.text = keywords

        success = Api.yt_service.UpdateVideoEntry(entry)
        return success
def update_video(self, video_id, title="", description="", keywords="", access_control=AccessControl.Unlisted):
        # Raise ApiError if not authenticated
        if not self.authenticated:
            raise ApiError(_("Authentication is required"))

        entry = self.fetch_video(video_id)

        # Set Access Control
        extension = self._access_control(access_control)
        if extension:
            entry.extension_elements = extension

        if title:
            entry.media.title.text = title

        if description:
            entry.media.description.text = description

        #if keywords:
        #    entry.media.keywords.text = keywords

        success = Api.yt_service.UpdateVideoEntry(entry)
        return success
def update_video ( self , video_id , title = "" , description = "" , keywords = "" , access_control = AccessControl . Unlisted ) : # Raise ApiError if not authenticated if not self . authenticated : raise ApiError ( _ ( "Authentication is required" ) ) entry = self . fetch_video ( video_id ) # Set Access Control extension = self . _access_control ( access_control ) if extension : entry . extension_elements = extension if title : entry . media . title . text = title if description : entry . media . description . text = description #if keywords: #    entry.media.keywords.text = keywords success = Api . yt_service . UpdateVideoEntry ( entry ) return success
Updates the video

        Authentication is required

        Params:
            entry: video entry fetch via 'fetch_video()'
            title: string
            description: string
            keywords: string

        Returns:
            a video entry on success
            None otherwise
Updates the video