Numeric captions disappear from transcripts and embed subtitles
維護者通常 1 天內回覆
評估
- 難度
- 2/5
- 預估耗時
- 1-3 小時
- 新手友好度
- 35/100
- Issue 類型
- 缺陷
- 描述清晰度
- 描述清楚
- 活躍度
- 停滯
- 技術堆疊
- bun, react, typescript
- 領域
- frontend, testing-qa
研究方向
Read the parser in apps/web/app/s/[videoId]/_components/utils/transcript-utils.ts and the parser in apps/web/app/s/[videoId]/_components/tabs/Transcript.tsx; the reproduction command in the issue exercises the production edit helper and embed parser. Check how numeric cue identifiers are distinguished from caption text, then rerun the reproduction and confirm numeric captions remain in the parsed entries. Two open pull requests already address this issue.
由索引模型根據 Issue 內容生成。
描述
Description
Caption text containing only digits disappears from the web Transcript tab and embed subtitles. An owner can save a correction such as 0 or 007 successfully, then lose that row when the saved transcript reloads. The text is still present in the stored VTT.
Both transcript parsers treat every numeric line as a cue identifier, including a numeric payload after a timing line. The embed player then regenerates its subtitle track from the incomplete parsed entries.
Expected: numeric text remains visible and is preserved in exported and embedded subtitles.
Reproduction
- Open a Cap you own with a completed transcript.
- Change a caption's text to
007and save. - Reload the transcript. The row disappears even though the edit was saved.
The same behavior is reproducible without auth or storage by running the production edit helper and the parser used by the embed player from the repository root:
bun -e 'import { parseVTT } from "./apps/web/app/s/[videoId]/_components/utils/transcript-utils"; import { updateVttEntryText } from "./apps/web/lib/transcript-vtt"; const original = "WEBVTT\n\n1\n00:00:00.000 --> 00:00:01.000\nZero.\n\n"; const saved = updateVttEntryText(original, 1, "0"); console.log({ saved: saved.updated, entries: parseVTT(saved.content) });'
Actual: { saved: true, entries: [] }.
The proposed fix retains { id: 1, timestamp: "00:00", startTime: 0, text: "0" }. A three-cue recording generated by the production caption formatter likewise loses its standalone 2026 cue on main and keeps it with the fix.
Additional Context
- Baseline main:
1965b31796db6da107a8f859ff34397468ae9512. - Linux x86-64, Bun 1.4.1, React 19.2.4. Actual baseline/patched Transcript components were exercised in Chromium with auth/storage hooks replaced by local fixtures. The numeric row is absent before, visible after, and clicking it seeks to the correct 1.5-second position.
- This verifies real parsing, rendering, edit-helper output and subtitle regeneration. It does not claim an authenticated backend write or a newly collected speech-recognition response; the timed-word fixture is synthetic.
- Related open #2416 and #2417 consolidate these parsers but retain the numeric-ID rule. The current #2417 parser at
8341885995171e9e191d88d47ea2ba01d73be7ddwas also executed and still drops a plain numeric cue. This fix may need its condition carried into the shared parser if that refactor lands first.
Affected sources: Transcript parser, embed utility parser.
- 主要語言
- Rust
- 星號
- 23.7k
- 分支
- 2.1k
- 平均合併
- 1 天 6 小時
- 30 天內合併 PR
- 705
環境準備
- 提供 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
CapSoftware/Cap 的其他 Issue
-
Web player intercepts ⌘⇧M and blocks Chrome profile-menu shortcut可能已有人在做 @AatmanAJ 於 12 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 80/100
CapSoftware/Cap#2596 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 68/100
CapSoftware/Cap#2384 · 2 則留言 ·
維護者通常 1 天內回覆
-
Dashboard pagination causes full page reloads on self-hosted Cap可能已有人在做 @Dewin 於 40 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 88/100
CapSoftware/Cap#2305 · 2 則留言 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 68/100
CapSoftware/Cap#1714 · 3 則留言 ·
維護者通常 1 天內回覆
-
Pending transcript saves discard later typing可能已有人在做 @AksharP5 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 35/100
CapSoftware/Cap#3502 · 1 則留言 ·
維護者通常 1 天內回覆
相似的 Issue
-
desktop documentation
難度 1/5 1 小時以內 新手友好度 90/100
vfarcic/dot-agent-deck#2008 ·
維護者通常 1 天內回覆
-
needs triage
難度 1/5 1 小時以內 新手友好度 85/100
pbakaus/impeccable#1210 ·
維護者通常 1 天內回覆
-
area: ci priority: P4 ready-for-agent
難度 2/5 1-3 小時 新手友好度 74/100
維護者通常 1 天內回覆
-
L: javascript
難度 2/5 1-3 小時 新手友好度 72/100
dependabot/dependabot-core#16744 ·
維護者通常 1 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 68/100
nautechsystems/nautilus_trader#5486 · 1 則留言 ·
維護者通常 1 天內回覆