def fmt_title_and_desc(data):
    """
    格式化标题和简介
    :param data: {name,url,date}
    :return: {name,url,date,format_title}
    """
    index = data['name']
    context = {**config, **config['streamers'][index]}
    streamer = data.get('streamer', index)
    date = data.get("date", time.localtime())
    title = data.get('title', index)
    url = data.get('url')
    data["format_title"] = custom_fmtstr(context.get('title') or f'%Y.%m.%d{index}', date, title, streamer, url)
    if context.get('description'):
        context['description'] = custom_fmtstr(context.get('description'), date, title, streamer, url)
    return data, context
格式化标题和简介
:param data: {name,url,date}
:return: {name,url,date,format_title}
biliup/uploader.py