feat: package docker deployment and publish flow
This commit is contained in:
@ -25,3 +25,11 @@ cd /home/theshy/biliup/biliup-next
|
||||
- `upload_config.json` <- `upload_config.example.json`
|
||||
|
||||
它们只用于占位,能保证项目进入“可配置、可 doctor”的状态,但不代表上传链路已经可用。
|
||||
|
||||
`upload_config.json` 同时控制:
|
||||
|
||||
- 纯享版投稿标题、简介、动态、标签:`template`
|
||||
- 纯享版和完整版置顶评论格式:`comment_template`
|
||||
- 文件名解析规则:`filename_patterns`
|
||||
|
||||
Docker 部署时这个目录通常会作为 `./runtime:/app/runtime` 挂载到容器内。镜像更新不会覆盖已有 `upload_config.json`,所以修改评论、动态、简介格式时,应直接改宿主机上的 `runtime/upload_config.json`。
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
{
|
||||
"cookie_info": {
|
||||
"cookies": []
|
||||
},
|
||||
"token_info": {
|
||||
"access_token": "",
|
||||
"refresh_token": ""
|
||||
}
|
||||
}
|
||||
{
|
||||
"cookie_info": {
|
||||
"cookies": []
|
||||
},
|
||||
"token_info": {
|
||||
"access_token": "",
|
||||
"refresh_token": ""
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,5 +1,95 @@
|
||||
{
|
||||
"line": "AUTO",
|
||||
"limit": 3,
|
||||
"threads": 3
|
||||
"comment": "B站投稿配置文件 - 根据您的需要修改模板内容",
|
||||
"upload_settings": {
|
||||
"tid": 31,
|
||||
"copyright": 1,
|
||||
"source": "王海颖好听的歌声分享",
|
||||
"cover": ""
|
||||
},
|
||||
"template": {
|
||||
"title": "【{streamer} (歌曲纯享版)】 {date} 共{song_count}首歌",
|
||||
"description": "{streamer} {date} 歌曲纯享版。\n\n完整歌单与时间轴见置顶评论。\n直播完整版:{current_full_video_link}\n上次直播:{previous_full_video_link}\n\n本视频为歌曲纯享切片,适合只听歌曲。",
|
||||
"tag": "可爱,聒噪的王海颖,王海颖,宸哥ovo,好听的歌声,吉他弹唱,纯享版,唱歌,音乐",
|
||||
"dynamic": "{streamer} {date} 歌曲纯享版已发布。完整歌单见置顶评论。\n直播完整版:{current_full_video_link}\n上次直播:{previous_full_video_link}"
|
||||
},
|
||||
"comment_template": {
|
||||
"split_header": "当前视频:歌曲纯享版:只保留本场直播中的歌曲片段,歌单见下方。\n直播完整版:{current_full_video_link} (完整录播,含聊天/互动/完整流程)\n上次纯享:{previous_pure_video_link} (上一场歌曲纯享版)",
|
||||
"full_header": "当前视频:直播完整版:保留本场完整录播内容,歌曲时间轴见下方。\n歌曲纯享版:{current_pure_video_link} (只听歌曲看这里)\n上次完整版:{previous_full_video_link} (上一场完整录播)",
|
||||
"split_part_header": "P{part_index}:",
|
||||
"full_part_header": "P{part_index}:",
|
||||
"split_song_line": "{song_index}. {title}{artist_suffix}",
|
||||
"split_text_song_line": "{song_index}. {song_text}",
|
||||
"full_timeline_line": "{song_index}. {line_text}"
|
||||
},
|
||||
"streamers": {
|
||||
"王海颖": {
|
||||
"display_name": "王海颖",
|
||||
"tags": "可爱,聒噪的王海颖,王海颖,宸哥ovo,好听的歌声,吉他弹唱,纯享版,唱歌,音乐"
|
||||
},
|
||||
"示例主播": {
|
||||
"display_name": "示例主播",
|
||||
"tags": "示例,标签1,标签2,唱歌,音乐"
|
||||
}
|
||||
},
|
||||
"quotes": [
|
||||
{
|
||||
"text": "此心安处是吾乡。",
|
||||
"author": "苏轼《定风波·南海归赠王定国侍人寓娘》"
|
||||
},
|
||||
{
|
||||
"text": "山重水复疑无路,柳暗花明又一村。",
|
||||
"author": "陆游《游山西村》"
|
||||
},
|
||||
{
|
||||
"text": "长风破浪会有时,直挂云帆济沧海。",
|
||||
"author": "李白《行路难·其一》"
|
||||
}
|
||||
],
|
||||
"filename_patterns": {
|
||||
"comment": "从文件名提取信息的正则表达式模式 - 按优先级从高到低排列",
|
||||
"patterns": [
|
||||
{
|
||||
"name": "主播名唱歌录播 日期 时间",
|
||||
"regex": "^(?P<streamer>.+?)唱歌录播 (?P<month>\\d{2})月(?P<day>\\d{2})日 (?P<hour>\\d{2})时(?P<minute>\\d{2})分",
|
||||
"date_format": "{month}月{day}日 {hour}时{minute}分",
|
||||
"example": "王海颖唱歌录播 01月28日 22时06分"
|
||||
},
|
||||
{
|
||||
"name": "日期 时间 主播名 唱歌录播",
|
||||
"regex": "^(?P<month>\\d{2})月(?P<day>\\d{2})日 (?P<hour>\\d{2})时(?P<minute>\\d{2})分 (?P<streamer>.+?)唱歌录播",
|
||||
"date_format": "{month}月{day}日 {hour}时{minute}分",
|
||||
"example": "01月25日 09时20分 王海颖唱歌录播"
|
||||
},
|
||||
{
|
||||
"name": "主播名唱歌录播: 年月日 时分 [BV号]",
|
||||
"regex": "^(?P<streamer>.+?)唱歌录播[::] (?P<year>\\d{4})年(?P<month>\\d{2})月(?P<day>\\d{2})日 (?P<hour>\\d{2})时(?P<minute>\\d{2})分 \\[(?P<video_id>BV[A-Za-z0-9]+)\\]",
|
||||
"date_format": "{month}月{day}日 {hour}时{minute}分",
|
||||
"example": "王海颖唱歌录播: 2026年01月22日 22时09分 [BV1wEzcBqEhW]"
|
||||
},
|
||||
{
|
||||
"name": "主播名 日期 时分 [BV号]",
|
||||
"regex": "^(?P<streamer>.+?) (?P<month>\\d{2})月(?P<day>\\d{2})日 (?P<hour>\\d{2})点(?P<minute>\\d{2})分 \\[(?P<video_id>BV[A-Za-z0-9]+)\\]",
|
||||
"date_format": "{month}月{day}日 {hour}点{minute}分",
|
||||
"example": "王海颖 01月25日 02点24分 [BV1KCzQBpEXC]"
|
||||
},
|
||||
{
|
||||
"name": "主播名_日期",
|
||||
"regex": "^(?P<streamer>.+?)_(?P<date>\\d{1,2}月\\d{1,2}日)",
|
||||
"date_format": "{date}",
|
||||
"example": "王海颖_1月20日"
|
||||
},
|
||||
{
|
||||
"name": "主播名_完整日期",
|
||||
"regex": "^(?P<streamer>.+?)_(?P<year>\\d{4})-(?P<month>\\d{2})-(?P<day>\\d{2})",
|
||||
"date_format": "{month}月{day}日",
|
||||
"example": "王海颖_2026-01-20"
|
||||
},
|
||||
{
|
||||
"name": "主播名_描述",
|
||||
"regex": "^(?P<streamer>.+?)_(?P<desc>.+)",
|
||||
"date_format": "{desc}",
|
||||
"example": "测试搬运_前15分钟"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user