Repository navigation
feat: add --format, --segments, --list-languages and --proxy - #12
Merged
Merged
Conversation
- --format md|txt|srt|vtt writes only the transcript; SRT and WebVTT
keep millisecond cue times.
- --segments adds a segments array of {start, end, text} to the JSON.
- --list-languages prints the caption tracks as JSON.
- --proxy routes requests through an http, https or socks proxy;
HTTPS_PROXY was already honoured and is now documented.
Refs #3
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01FPou7f8nRjX78T2qR7hTjb
This was referenced Oct 8, 2026
This was referenced Oct 8, 2026
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.
Refs #3, covering the first four items under "Features" in its suggested plan. It is stacked on #11.
Changes
--format md|txt|srt|vttwrites only the transcript.txtputs one caption per line.-->in the text is written as->so it can't break a cue.--segmentsaddssegments: [{start, end, text}]to the JSON, with times in seconds rounded to the millisecond. Without the flag the field isnull, so every document keeps the same keys. The field is opt-in because long videos are already large:transcriptis about 2.9× the size oftranscriptRaw.--list-languageswrites{videoId, tracks: [{code, name, isAutoGenerated}]}and exits.--proxy <url>accepts http, https, socks4, socks4a and socks5 URLs. Without it, HttpClient's default proxy is kept, which readsHTTPS_PROXY,HTTP_PROXYandNO_PROXYand falls back to the system proxy. This is now documented.--format srt --metadata-onlyand--list-languages --segments.Verification
-->escaping), segment rounding, blank-caption skipping, track listing, option parsing and conflicts, and a segments array in the golden JSON.--list-languageson iG9CE55wbtY lists every track.-f srt,-f vtt,-f txtand-f mdall produce well-formed output.--segmentsreturns 427 segments.--proxy http://127.0.0.1:9andHTTPS_PROXY=http://127.0.0.1:9both fail with "Connection refused", which shows that requests go through the proxy.Not included
ytx mcp. The plan in Blog post notes: reviewing ytx, NativeAOT and v1.0.8 #7 puts this after an AOT spike, which is feat: NativeAOT builds, benchmarks and packaging #6.🤖 Generated with Claude Code
https://claude.ai/code/session_01FPou7f8nRjX78T2qR7hTjb