Google Drive indexableText for a video in Python -


i trying add indexable text video in drive. drive sdk docs used patch method.

def add_indexable_text(service, file_id, text_to_index):   try:     file = {'indexabletext': {'text': text_to_index}}     updated_file = service.files().patch(       fileid = file_id,       body = file,       fields = 'indexabletext').execute()      return updated_file   except errors.httperror, error:     print 'an error occurred: %s' % error     return none 

i'm not seeing errors in terminal when search in drive metadata text there no results. i've tried waiting while didn't seem help/matter. video says updated when ran script there's something. can provide.

update: seems can add indexabletext video once not change afterward.

the code looks fine me. try using "try it" function of docs, work?

https://developers.google.com/drive/v2/reference/files/patch

maybe request went through failed, causes no httperror.

what's return value typical call?


Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -