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:
16 files changed
+233
-5
No files matched your search
@@ -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 ?? '',
|
||||
|
||||
@@ -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 ?? '',
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in new issue
Block a user