A pasted video or a channel opened before subscribing had no way to subscribe once you were on the episode. The icon row now has a subscribe button, before the YouTube icon. It uses the saved feed, the previewed show, or the channel id behind a single YouTube video. Subscribed shows show the button pressed; clicking again asks before unsubscribing.
Co-Authored-By: Claude Code <noreply@anthropic.com>
- The clip preview couldn't load its own file (work/clips was outside the asset scope); it now plays
the real cut on its own (muted, one click for sound), and until that is ready YouTube plays the
stretch in place, framed like the export.
- Progress with stages and a finish line: over the preview while fetching, in the footer through
export (step 1/2, 2/2); resolving creeps instead of sitting at 0. The best two highlights are
prefetched with the exact range the dialog asks for, so they open with the cut ready.
- After export: show in folder, copy post, copy cover in the footer; the toast has an 'Open folder'
button. Settings › Storage sets the export folder (default Downloads).
- Tabs are Video / Cover / Post; trimming and subtitle edits fold away; the AI polish button is gone
(the post is written when the window opens; 'Another version' rewrites it).
- Covers: secondary lines 38–46 px semibold with shadows on photos, larger labels and footers (read at
feed size); minimal style drew its title in the subtitle font.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- fastclip.rs reads the YouTube stream's sidx index and fetches only the clip's bytes over 8 connections
(googlevideo throttles one connection to ~200 KB/s after a burst); addresses are cached and can be
resolved ahead of time (video_clip_warm). One exact encode instead of yt-dlp's re-encode + normalize.
Falls back to yt-dlp sections. Measured: 30 s 1080p stretch, download+cut ~9 s after resolving.
- Blurred card background is blurred at quarter size: 71 s -> 10 s for a 105 s 9:16 render.
- Render takes a generic frame (canvas size, fill or card box) for any aspect ratio.
- Our subtitles are off by default when the source already has burned-in subtitles.
- Subtitles are short single lines (14 CJK chars portrait, 18 landscape); the chat model adds punctuation
and breaks lines when available, checked to keep every character, with a deterministic fallback.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Snapshot of the uncommitted work in the main checkout as of 2026-11-19 09:47 PST, taken
without touching that checkout's index or files.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Replaces the long system-voice list with a 本地语音 engine. Melo (~191 MB) and
Kokoro v1.1 (~420 MB, 8 Chinese voices) download on first use from Hugging Face
(hf-mirror first), with every file checked against a pinned manifest; the
sherpa-onnx v1.13.8 command-line runtime (~20 MB) comes from GitHub. fp32
weights because int8 was 3-4x slower on Apple Silicon. On macOS the system
voice is fixed to Tingting. Windows keeps the SAPI picker (the sherpa CLI reads
ANSI argv, so Chinese would be garbled).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adds nullable watched_override column to episodes, allows set_progress(0), aligns list_shows unplayed SQL with frontend thresholds (>=95% or >5 min with <=90 s left, or manual/ended 'done'), and adds set_watched + mark_show_watched commands. Centralizes unseen / in-progress / watched state in src/lib/watched.ts with optimistic live updates and sidebar count refresh, upgrades EpisodeRow and EpisodeCard visuals, adds quick mark-watched actions on rows, episode toolbar, and ShowView menu, upgrades ShowView filters to 全部|未看完|已看|有字幕, and adds 隐藏已看 when expanding 最新单集.
Adds unified tts_synthesize with on-disk LRU cache (<data>/tts-cache/) and duration metadata, pure-Rust Edge Read Aloud (Sec-MS-GEC v2), OS system voices, and cloud services (Doubao, MiMo, Qwen-TTS, OpenAI, SiliconFlow, MiniMax, ElevenLabs, custom OpenAI-compatible). Adds Settings > 朗读, updates the ReadAloud popover with engine/voice switching and preview, and preserves Doubao for existing users with a Doubao key while defaulting new users to Edge.
- The player stops after each sentence (sentence-sized pieces, not whole lines);
words light up as they are said (local ASR about once a second), and the next
sentence plays once ~70% were said (all of them for 3 words or fewer).
Three misses and it moves on. 再说一遍 / 重听原句 / 跳过.
- Microphone in Rust (cpal) on its own thread, last 30 s kept; recognition with
the installed model (Qwen3-ASR via CrispASR, or Whisper). Nothing leaves the Mac.
- Falls back to the old timed pauses without a model or microphone; 打分/定时 in the bar.
- macOS: NSMicrophoneUsageDescription and the audio-input entitlement (hardened
runtime); Linux CI needs libasound2-dev.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Subtitles now remember the audio file they were made from (size, length, chromaprint
fingerprint), uploaded with shared subtitles. Before playing, the file size is compared; when
the playing file is another cut, it is downloaded into a capped audio cache (and played from
there) and the two fingerprints give the stretches both share. Subtitles without a fingerprint
are lined up by transcribing a few short stretches with the local model and finding them in the
text. The map is applied only in the player, so subtitles, translations, word-book jumps and
guide timestamps keep their times. Parts only the playing file has show a notice and can be
skipped; a bar in the subtitle menu lines things up by hand.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The upgrade button beside Settings replaces main's update dot on the cog (one signal, not two).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- learn_clip cuts one sentence out of an episode with HTTP range requests and the decoder's own seeking (about
0.5 MB for a podcast, 1.2 MB for a YouTube video) into a small local WAV, made when a word is saved and for
the next cards in review, so replaying is instant and offline. A spinner shows while a clip is being cut.
- Review says the word itself (system voice) on the answer side; W repeats it, R the sentence.
- Export asks where to save. Anki export is now an .apkg (double-click to import) with each sentence's audio,
Anki's own TTS for the word, and stable note ids so a second import updates instead of duplicating.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Borrowing a browser's sign-in fails where the browser encrypts its cookies for itself (Chrome 127+ on Windows:
"Failed to decrypt with DPAPI", yt-dlp issue 10927). SubCast now opens its own YouTube sign-in window; the
sign-in stays in its web view storage and each yt-dlp job that hits the check gets a fresh cookie file, deleted
when the job ends. An unreadable browser now says so and points to signing in instead of showing yt-dlp's error.
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 updater plugin still finds the update and checks the signature, but the package is fetched with our own
client (follows the proxy setting) after a 256 KB probe of both sources, falling back to the other on failure.
A downloaded update shows as an accent upgrade button beside Settings; the corner card only reports failures.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Server: POST /api/v1/transcripts/exists takes up to 400 keys and returns the ones
with a visible shared version (own rate bucket, RATE_EXISTS_PER_HOUR=120).
App: shared_exists asks once for the home grid's episodes; hits get the 有字幕
tag and sort first. An older server or no network means no extra marks.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- P0: the lookup is cache -> publisher -> shared library (new shared_transcript command) before an episode is
called 'no subtitles', so nobody downloads a 1 GB model for an episode someone already transcribed.
- P0: model sizes shown one way everywhere (Qwen3-ASR file is 960 MB).
- P1: once a way of transcribing is ready, pressing play on an episode with no subtitles anywhere starts it.
- P1: the home grid lists episodes that open with subtitles first, marked 有字幕.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A user had Qwen3-ASR 0.6B from another app (Beanpod) and SubCast didn't find it. CrispASR reads only the
single-file GGUF, so MLX and Hugging Face safetensors copies (and llama.cpp's split GGUF) can't be shared. The
scan now notes them and Settings > 语音识别 names where they are and why, instead of staying silent.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Listening time is recorded per day and hour from actual playback (wall clock while playing, at most 2 s a tick,
so seeks and sleep add nothing), flushed every 20 s and on pause, in a local listens table. Sources are where it
played from (YouTube / podcast / Xiaoyuzhou); 精读 is a collection, not a source.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
DeepSeek: /v1/tools/asr, 60 s WAV pieces, text spread over each piece. Models: whisper.cpp ggml-*.bin and
Qwen3-ASR GGUF files in other apps' folders (Application Support, ~/.cache incl. Hugging Face, whisper.cpp,
Downloads; checked by size and file magic) are linked into our models folder, never copied; removing one only
removes the link. On this Mac it found Screen Studio's ggml-medium (1.4 GB) in 0.5 s.
Playback keeps going across pages; audio subtitles show the next sentence; YouTube bot check; existing models from more apps
- VideoDock: one YouTube player at the app root, positioned over the episode's slot or floating (with back /
close) when the page is left, so the iframe is never moved or reloaded.
- Audio episodes: the sentence being spoken and the next one, faded with a small dot, sliding up in turn;
blocks split at sentence ends first (also used on video).
- YouTube audio: on 'confirm you're not a bot', other YouTube clients, then (if allowed in Settings > 通用)
the chosen browser's sign-in; the error says where to set it.
- Speech models: Mac App Store sandbox containers scanned too; split llama.cpp Qwen3-ASR (encoder in mmproj, e.g.
Cap's) is skipped as CrispASR can't run it; found models listed by source app, unlinking keeps the original;
the subtitle card offers a model this computer already has instead of a download.
- Full screen letterboxes the video so nothing is cut off.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
YouTube: the app's yt-dlp copies the chosen browser's YouTube cookies to a temp file, feed/channels and its
continuations (SAPISIDHASH) are read, the file is deleted at once. Files are parsed in the app. One list to
review (already-subscribed skipped), then three at a time. Entries: Add dialog 导入订阅 tab, onboarding, and
Settings > 通用 (with 导出 OPML to Downloads).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Full screen is a layout mode plus the window's own full screen (the macOS WebView doesn't enable element
fullscreen): the video fills the screen, subtitles scale up, controls show on mouse move and hide after 2.5 s.
Shortcuts come from one registry with YouTube-style defaults (K/Space, J/L, F, C, M, Shift+< >); Settings > 快捷键
records new keys (Esc cancels, Backspace clears), refuses system shortcuts, offers a swap on conflict, and plain
keys never fire while typing.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
agents.rs: found in PATH and the usual install folders, started directly (no shell, so user aliases don't apply),
in an empty folder with tools off and every permission refused; warm processes kept 4 min. Measured on this Mac:
Claude Code 6.6 s cold, 2.7 s warm; Qwen Code 7.4 s; Codex 19-22 s (low effort). Gemini CLI personal accounts are
refused upstream; Kimi/OpenCode errors become plain advice. A logged-in agent is used for Q&A and translation
when nothing else is set up and the listener hasn't chosen.
Settings > AI 模型 redesigned: what is used now at the top; 本机 AI (no key) and API 模型 on the left with status
dots, the long provider list folded; plain-language detail with login help and a one-click test.
(Translations for the new strings follow.)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 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>
- 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>
- Sidebar collapses to a 72px icon rail (covers, unread dots, active ring, tooltips) instead of hiding; ⌘B toggles
- Panel tabs drop their labels below 420px, keeping tooltips and aria-labels
- Skeleton placeholders for feeds, episode page, transcript and 精读, with reduced-motion support and fade-in
- Video first; audio-only switch and automatic audio fallback when a video can't play
- Channel previews open instantly from cache and refresh in the background after 30 minutes
- Month calendar heat map filter on show and channel pages; uniform 16:9 thumbnails with blurred backdrops for square art; recent list no longer date-grouped
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Model catalogue from Capwise (relays, vendors, local) with grouped picker and live model-list fetch
- Speech recognition: local models or cloud services (Doubao flash, SiliconFlow, Groq, OpenAI, GLM, StepFun, local server), chunked and parallel
- Doubao seed-tts-2.0 read-aloud with Capwise voices; 朗读 button on 精读 articles
- About page: version, feedback/source links, WeChat follow and tip QR codes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- qiaomu.rs: read *.qiaomu.ai channels (episodes.json, curated Chinese titles into the translation cache), and per-episode audio, 精读 article and original transcript from the episode page
- Separate 精读 tab; 导读 now holds the original show notes plus the AI summary
- Curated channels listed in the sidebar; clicking opens a preview page (episodes playable) with a subscribe button
- Draggable sidebar / subtitle panel edges with snap-collapse, double-click reset, keyboard nudge, ⌘B / ⌘\ toggles, persisted widths; player capped to keep controls in view
- Episode list: single column grouped by date, two-line titles, quiet status tags
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Embed runs with controls off, cropped and shielded; our poster and controls drive it
- Videos that block embedding fall back to yt-dlp's HLS manifest in a native <video> (hls.js where WebKit lacks HLS)
- Episode right column spans the full window; top-right settings button removed
- Calm neutral palette with soft blue active line
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>