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

refactor: change the upload line #139

Merged
merged 1 commit into from
Dec 15, 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
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -380,4 +380,5 @@ cookies.json
src/subtitle/models/base.pt
src/subtitle/models/small.pt
src/burn/mergevideo.txt
src/upload/upload.yaml
src/upload/upload.yaml
src/upload/uploadVideoQueue.txt
30 changes: 29 additions & 1 deletion docs/upload.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,32 @@
+ 默认描述是"【弹幕+字幕】[XXX]直播,直播间地址:[https://live.bilibili.com/XXX] 内容仅供娱乐,直播中主播的言论、观点和行为均由主播本人负责,不代表录播员的观点或立场。"
+ 默认标签是根据主播名字自动在 b 站搜索推荐中抓取的[热搜词],详见[bilibili-API-collect](https://github.com/SocialSisterYi/bilibili-API-collect/blob/master/docs/search/suggest.md)。

上传会根据以上模版生成上传视频对应的 `yaml` 配置文件,也可在 `src/upload/extract_video_info.py` 中自定义相关配置。
上传会根据以上模版生成上传视频对应的 `yaml` 配置文件,也可在 `src/upload/extract_video_info.py` 中自定义相关配置。

## 投稿过于频繁

```
Error: ResponseData { code: 137022, data: None, message: "投稿过于频繁,请稍后再试", ttl: Some(1) }
```

此类报错常出现在短时间内连续投稿,因此个人建议最小分段不要少于半小时,否则会触发此类错误,具体限制规则目前还未知,咨询客服也未解答,以下是触发的情况
```
2024-12-14 20:48:27
2024-12-14 21:19:23
2024-12-14 21:47:27
2024-12-14 22:03:58
2024-12-14 22:21:51
2024-12-14 22:31:35
2024-12-14 22:42:30
2024-12-14 22:51:35
2024-12-14 22:57:21
2024-12-14 23:08:06
2024-12-14 23:16:16
2024-12-14 23:22:33
2024-12-14 23:32:51
2024-12-14 23:40:56
2024-12-14 23:51:25
2024-12-15 00:10:02 触发 Error
```

同时,如果存在录制多位的情况,推荐将权重低的直播间分段间隔调整大,尽量减少投稿频率,而给较为重要的直播间设置较短的间隔。
2 changes: 1 addition & 1 deletion src/upload/generate_yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def generate_yaml_template(video_path):
desc = generate_desc(video_path)
tag = generate_tag(video_path)
data = {
"line": "kodo",
"line": "bda2",
"limit": 5,
"streamers": {
video_path: {
Expand Down