feat(upload): support first-class tid_v2 partition id (#1699)

Add optional tid_v2 across Studio, config/DB, CLI, Web UI, stream-gears,
and Python uploaders so new Bilibili partition IDs can be set alongside
legacy tid. Fixes #1662; related to #1562.
This commit is contained in:
Noah authored and GitHub committed 2026-09-14 16:19:53 +00:00
1 parent 2295ae1eba
commit 970dfe8b37
16 files changed
+233 -5

No files matched your search

+1
View File
@@ -60,6 +60,7 @@ export default function Add() {
id: values.id,
copyright_source: values.copyright_source ?? '',
tid: values.tid[1],
tid_v2: values.tid_v2 ?? null,
cover_path: values.cover_path ?? '',
title: values.title ?? '',
description: values.description ?? '',
+1
View File
@@ -76,6 +76,7 @@ const Edit = () => {
id: values?.id,
copyright_source: values?.copyright_source ?? '',
tid: values?.tid[1],
tid_v2: values?.tid_v2 ?? null,
cover_path: values?.cover_path ?? '',
title: values?.title ?? '',
description: values?.description ?? '',
+1
View File
@@ -71,6 +71,7 @@ export interface StudioEntity {
copyright: number;
copyright_source: string;
tid: number;
tid_v2?: number | null;
cover_path: string;
title: string;
description: string;
+7
View File
@@ -249,6 +249,13 @@ const TemplateFields: React.FC<FormFCChild<StudioEntity & { isDtime: boolean }>>
dropdownStyle={{ maxWidth: 670 }}
rules={[{ required: true }]}
/>
<InputNumber
field="tid_v2"
label="分区 tid_v2"
style={{ width: 272 }}
placeholder="可选,新版分区 ID"
extraText="对应 B 站 tid_v2;不填则仅使用上方分区"
/>
<TagInput
max={12}
maxLength={20}