def meta_caption(meta) ->str:
    """makes text from metadata for captioning video"""
    caption = ''
    try:
        caption += meta.title + ' - '
    except (TypeError, LookupError, AttributeError):
        pass
    try:
        caption += meta.artist
    except (TypeError, LookupError, AttributeError):
        pass
    return caption
