From abad59abfe3a65eba14772338d4dbcf34a384674 Mon Sep 17 00:00:00 2001 From: John Howe <89397553+timerring@users.noreply.github.com> Date: Thu, 12 Dec 2024 22:29:34 +0800 Subject: [PATCH] perf: adjust upload title --- README.md | 2 +- docs/upload.md | 2 +- src/upload/extract_video_info.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 42b7d12..37998f1 100644 --- a/README.md +++ b/README.md @@ -183,7 +183,7 @@ logs # 日志文件夹 > [!TIP] > 上传默认参数如下,[]中内容全部自动替换。也可在 src/upload/extract_video_info.py 中自定义相关配置: -> + 默认标题是"【弹幕】[XXX]直播回放-[日期]-[直播间标题]"。 +> + 默认标题是"【弹幕+字幕】[XXX]直播回放-[日期]-[直播间标题]"。 > + 默认描述是"【弹幕+字幕】[XXX]直播,直播间地址:[https://live.bilibili.com/XXX] 内容仅供娱乐,直播中主播的言论、观点和行为均由主播本人负责,不代表录播员的观点或立场。" > + 默认标签是根据主播名字自动在 b 站搜索推荐中抓取的[热搜词],详见[bilibili-API-collect](https://github.com/SocialSisterYi/bilibili-API-collect/blob/master/docs/search/suggest.md)。 diff --git a/docs/upload.md b/docs/upload.md index 8f46b2e..30f0a5c 100644 --- a/docs/upload.md +++ b/docs/upload.md @@ -3,7 +3,7 @@ ## 上传默认参数 上传默认参数如下,[]中内容全部自动替换: -+ 默认标题是"【弹幕】[XXX]直播回放-[日期]-[直播间标题]"。 ++ 默认标题是"【弹幕+字幕】[XXX]直播回放-[日期]-[直播间标题]"。 + 默认描述是"【弹幕+字幕】[XXX]直播,直播间地址:[https://live.bilibili.com/XXX] 内容仅供娱乐,直播中主播的言论、观点和行为均由主播本人负责,不代表录播员的观点或立场。" + 默认标签是根据主播名字自动在 b 站搜索推荐中抓取的[热搜词],详见[bilibili-API-collect](https://github.com/SocialSisterYi/bilibili-API-collect/blob/master/docs/search/suggest.md)。 diff --git a/src/upload/extract_video_info.py b/src/upload/extract_video_info.py index 9ba449c..f07e099 100644 --- a/src/upload/extract_video_info.py +++ b/src/upload/extract_video_info.py @@ -36,7 +36,7 @@ def get_video_info(video_file_path): def generate_title(video_path): title, artist, date = get_video_info(video_path) - new_title = "【弹幕】" + artist + "直播回放-" + date + "-" + title + new_title = "【弹幕+字幕】" + artist + "直播回放-" + date + "-" + title return new_title def generate_desc(video_path):