- subtitleText.ts (pure, tested with node): tidyLine drops punctuation at a line's
start, ends lines only on ?!, turns ,。 inside a Chinese line into a space and
drops unpaired quotes; splitCjk breaks only between words (Intl.Segmenter),
preferring punctuation, never before a particle or 里, after a preposition, or
between a numeral and its measure word.
- Bilingual cues no longer split the translation by length: the model splits both
languages together (kept only when both stay whole), else sentence pairs, else
the whole segment wraps to two lines; only overlong pairs split by length, the
CJK side leading and the other side cut between words in proportion.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The ignored hlsproxy test (HLS_VIDEO=oFtjKbXKqbg) gets the app's HLS address, serves it through
master_only and plays it with ffprobe: YouTube lists en-US and ru, the proxy leaves en-US, h264+aac play.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 设置 is now a page (was a dialog), with a fifth section 学英语 after 通用.
- Learning mode (off by default): words above the chosen level (四级/六级/考研/雅思) are marked in English
subtitles; clicking a word opens a card with the offline ECDICT meaning, an AI note on its meaning in the
sentence, the speaker's own voice and Add to word book.
- Word book page with FSRS review (ts-fsrs): the front plays the sentence with the word blanked, keys 1-4 rate.
- This episode's words, shadowing (pauses after each sentence) and dictation from the subtitle panel's menu.
- Export for Anki / CSV through a new save_file command; older shells fall back to the clipboard.
- public/dict/en.json is built by scripts/build-dict.py from ECDICT (MIT).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The DMG was made with a bare `hdiutil create`, so Finder sorted the icons
alphabetically (Applications on the left, SubCast on the right) in a plain
white default window. Build it with create-dmg instead: 660x400 window,
128pt icons, SubCast.app at (170,180), an Applications link at (490,180),
and a background with an arrow and a bilingual drag hint.
The background source is scripts/dmg/background.svg; render.sh rebuilds the
1x/2x PNGs, which release.sh merges into a Retina TIFF with tiffutil.
Signing, notarization and stapling are unchanged.
Fixes#8
- ai.ts: before translating, a summary, speakers and up to 20 terms are made from title + show notes + opening lines
(cached per episode in blob ctx, user edits kept) and put in an identical system prompt for every batch (prompt
caching). New rules: one entry per cue, never merged, glossary renderings exact. Salvage every well-formed line
from a broken or cut-off answer and re-ask only the missing ids. Optional second polishing pass (精翻).
- jobs.ts: batch size and concurrency by provider; on a rate limit concurrency halves with backoff and grows back
after 20 successes; the batch nearest the playhead goes first; missing lines re-queued up to 3 times.
- A finished translation is shared with the transcript (share_translation); shared translations are used as the
episode's Chinese and only the gaps are translated.
- Settings: 快速/精翻 and 用节目简介辅助识别和翻译 in Overview > 字幕翻译; per-episode glossary in the subtitle panel.
- Fault-injected test (drops, cut-off JSON, fenced): old runner 192/300 lines with 5 batches lost; new 300/300.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- ota.rs: the interface (dist/) updates without an app release. Signed manifest (updater key), exact app-version
match, applies on next launch, staged -> booting -> committed with a 15 s ready check and permanent blacklist of
failed builds, no downgrades, staged rollout by install, rollback directive. The release build now serves the
interface itself (replaces tauri-plugin-localhost) so it can serve a hot update.
- scripts/ui-release.sh: builds, signs and publishes a hot update; refuses when src-tauri/ changed since the tag.
- Remote config (signed): YouTube API client versions can be changed without a release.
- docs/RELEASING.md and AGENTS.md: which channel to use and how, for people and agents.
- Verified end to end on the release app: stage, apply, ready; a broken bundle is dropped after 15 s and the last
good one reloads; rollback returns to the built-in interface; a tampered manifest is refused.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Video fallback: yt-dlp prepared when a video page opens, progress shown, 3-minute cap, Open on YouTube;
accurate error wording (only 101/150 mean the owner disallows embedding)
- yt-dlp from our mirror first (SHA-256 checked), GitHub second; server sync script
- Direct stream: HLS where the WebView plays it natively (macOS), progressive MP4 elsewhere
(YouTube HLS has no CORS header, so hls.js failed on Windows)
- Subtitles: Chinese videos no longer open in English when English subtitles are also uploaded; the
publisher's Chinese subtitles become the Chinese line; subtitle language picker; translation starts
whichever tab is open
- Search inside a show: titles and their Chinese, show notes, subtitles; subtitle hits play from that line
- Windows: static C runtime in subcast.exe, app-local VC++ runtime for CrispASR, embedded WebView2
bootstrapper, CI check of PE imports; Ctrl+ labels instead of ⌘ off macOS
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- notarize(): capture notarytool output before matching; piping into grep -q killed tee with SIGPIPE
and set -e aborted after Apple had accepted
- updater signing: drop the exported key env so tauri signer accepts -f
- server/deploy/docker-compose.yml: the API as deployed on myvps (node:22-alpine, data on the host)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- License: AGPL-3.0-only (LICENSE, package.json, Cargo.toml, server, README, About)
- release.sh: aaPanel site root; version-free download names as symlinks on the site
(/download/latest/…) and copies on the GitHub release (releases/latest/download/…)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Four interface languages (zh-CN, zh-TW, en, ja) with a strict dictionary check
- Offline downloads with a Storage page in Settings (sizes, open folder, clean up) and a menu on the downloaded tick
- Auto-update: background download by default, restart banner, update dot on the settings button
- Shared subtitles client (lookup before transcribing, upload after) and its API server under server/
- 词元之外: YouTube video version, red subscribe buttons, Discover banner, first-launch pick, About card; episode link opens YouTube at the current time
- Q&A: copy with or without timestamps or as Markdown with YouTube links, retry, edit, delete, new chat with history, follow-only-at-bottom
- Full show notes for rss.qiaomu.ai channels (YouTube description or 小宇宙 shownotes) with clickable chapters and links
- Rewritten guide prompt: specific points, whole-episode coverage, speakers, parts worth hearing first, timestamp self-check
- Middle column keeps a minimum width; player controls adapt and dock to the bottom when scrolled away
- Model settings ordered key, use, test, advanced; OpenCode session header
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>