Repository navigation
feat(imports): take a video's own captions as its transcript - #624
Merged
Merged
Conversation
Owner
Author
|
Next.js failed on Generated by Claude Code |
adeelahmad
pushed a commit
that referenced
this pull request
Oct 18, 2026
#622 added ai.answer_comments (answer when tagged in a comment) after #538 wrote the Kokoro settings test's view of the section, so Save sent an ai update beside the voice one and main's Next.js check went red at 2deac7a. The fixture names the default, the same line #621 and #624 carry. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NY27LFMbLezbvQQQeHT19a
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QFUNzy1QZy5HhKAyJxTAYJ
adeelahmad
force-pushed
the
claude/project-thread-xfmkzn
branch
from
October 18, 2026 15:42
7372961 to
9c6e17c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Adeel · project thread
Description
Before: a video imported by its address was always transcribed, even when the site had captions people wrote for it.
After: with Settings › Documents › Use a video's own captions on (
documents.video_captions, off by default), the written captions come down with the video (a site's subtitles, never its automatic ones) and become its transcript, so no speech model or provider is used. Lens takes the transcription language's captions, else the video's own language, else the first. The file is kept next to the media, encrypted like the rest when the namespace is, and the transcript's engine isimport:captions. A video without such captions is transcribed as before.How:
mediaurl.pyasks yt-dlp for--write-subs --no-write-auto-subswhen the setting is on, picks a file, anduse_captionswrites it as the transcript throughingest.read_text_transcript;jobs.pytries it before transcribing.Motivation and Context
Item from the personal feature plan sheet ("use existing subtitles instead of transcribing").
Screenshots (if appropriate):
n/a
Steps to reproduce (if appropriate):
Turn on Settings › Documents › Use a video's own captions, then import a video address that has subtitles.
Types of changes
!in the title)Checklist:
make hookschecks it on commit).test_video_urls.pytest_a_videos_own_captions_become_its_transcript).docs/accordingly (docs/api.md, Videos and podcasts).## UnreleasedinCHANGELOG.md. Written aschangelog.d/captions.md, per build(release): changelog fragments in changelog.d/ instead of one Unreleased section #581.Done questions (AGENTS.md)
.envedit or manual step.web.captionsis a new optional key.import:captions.Local CI (
ci/local-ci.sh): FastAPI (embedded and server), Next.js, pre-commit and PR title passed.Generated by Claude Code