Skip to content

Commit

Permalink
perf: adjust upload title (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
timerring authored Dec 12, 2024
1 parent c7d84d2 commit d3240fb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
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

0 comments on commit d3240fb

Please sign in to comment.