def get_ustream_data(video):
    """
    Helper to extract video and thumbnail from ustream.
    """
    video.source = 'ustream'
    video.key = video.url.rsplit('/', 1)[1]
    video.embed_src = 'http://www.ustream.tv/embed/'
    if 'recorded' in video.url:
        video.embed_src += '/recorded/'
    video.title = 'Ustream video'
    video.slug = 'ustream-{}'.format(video.key)
    return video
