docs: def _metadata_from_video(self, video):
          '''Generate the searchable metadata that we'll store in the bundle for the video'''
          long_desc = video['long_description']
          if long_desc is not None:
              long_desc = long_desc[:MAX_METADATA_STRING_LEN]
  
          tags = video.get('tags')
  
          metadata = {
              'name': default_to_empty_string(video.get('name')),
              'description': default_to_empty_string(video.get('description')),
              'long_description': default_to_empty_string(long_desc),
              'tags': tags if tags is not None else [],
              'updated_at': video.get('updated_at'),
              'created_at': video.get('created_at'),
              'state': video.get('state')
          }
          return metadata