def sub_info(rep, sub_path) -> list:
    """
    Returns the subtitle information to be added to manifest.

    Parameters
    ----------
    rep : Representation
    sub_path : subtitle manifest file name
    """
    tag = '#EXT-X-MEDIA:'
    info = [
        f'TYPE=SUBTITLES',
        f'GROUP-ID="subs"',
        f'NAME="subtitles"',
        f'URI="'+sub_path+'"'
    ]
    return [tag + ",".join(info)]