Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: adjust upload title #129

Merged
merged 1 commit into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)。

Expand Down
2 changes: 1 addition & 1 deletion docs/upload.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)。

Expand Down
2 changes: 1 addition & 1 deletion src/upload/extract_video_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down