feat(subtitles): 补字幕第 1 步——上传字幕 / zip,识别语言与季集,配对写入视频同目录,历史与撤销
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
feee481915
commit
ef29bd62ce
22 files changed
+1554
-2
No files matched your search
@@ -257,6 +257,7 @@ export type SubscriptionSeasonScope = "current_season" | "following_seasons";
|
||||
export type SubscriptionOrigin = "user" | "agent" | "policy" | "import";
|
||||
export type SubscriptionPriority = "immediate" | "tracking" | "new_work" | "upgrade";
|
||||
export type SubscriptionStatus = "active" | "paused" | "pending" | "completed" | "cancelled";
|
||||
export type SubtitleWriteSource = "upload" | "subhd" | "zimuku";
|
||||
export type TaskStatus = "pending" | "running" | "waiting" | "succeeded" | "failed" | "cancelled" | "dead";
|
||||
export type TasksOpLedgerStatus = "started" | "succeeded";
|
||||
export type TitleAliasKind = "original" | "translated" | "short" | "site_title" | "romanized" | "other";
|
||||
@@ -1603,6 +1604,23 @@ export interface SubscriptionHistoryTable {
|
||||
updated_at: GeneratedTimestamptz;
|
||||
}
|
||||
|
||||
export interface SubtitleWriteTable {
|
||||
id: Generated<string>;
|
||||
media_entity_id: string;
|
||||
video_location_id: string | null;
|
||||
subtitle_asset_id: string | null;
|
||||
library_root_id: string;
|
||||
relative_path: string;
|
||||
language: string;
|
||||
source: SubtitleWriteSource;
|
||||
source_name: string;
|
||||
source_ref: string | null;
|
||||
backup_path: string | null;
|
||||
actor: string | null;
|
||||
created_at: GeneratedTimestamptz;
|
||||
undone_at: Timestamptz | null;
|
||||
}
|
||||
|
||||
export interface TaskTable {
|
||||
id: Generated<string>;
|
||||
kind: string;
|
||||
@@ -1781,6 +1799,7 @@ export interface DB {
|
||||
sse_event: SseEventTable;
|
||||
subscription: SubscriptionTable;
|
||||
subscription_history: SubscriptionHistoryTable;
|
||||
subtitle_write: SubtitleWriteTable;
|
||||
task: TaskTable;
|
||||
tasks_fact: TasksFactTable;
|
||||
tasks_op_ledger: TasksOpLedgerTable;
|
||||
@@ -2021,6 +2040,9 @@ export type SubscriptionUpdate = Updateable<SubscriptionTable>;
|
||||
export type SubscriptionHistoryRow = Selectable<SubscriptionHistoryTable>;
|
||||
export type NewSubscriptionHistory = Insertable<SubscriptionHistoryTable>;
|
||||
export type SubscriptionHistoryUpdate = Updateable<SubscriptionHistoryTable>;
|
||||
export type SubtitleWriteRow = Selectable<SubtitleWriteTable>;
|
||||
export type NewSubtitleWrite = Insertable<SubtitleWriteTable>;
|
||||
export type SubtitleWriteUpdate = Updateable<SubtitleWriteTable>;
|
||||
export type TaskRow = Selectable<TaskTable>;
|
||||
export type NewTask = Insertable<TaskTable>;
|
||||
export type TaskUpdate = Updateable<TaskTable>;
|
||||
|
||||
Reference in new issue
Block a user