Skip to content

yt-transcript v1.2.0

Choose a tag to compare

@github-actions github-actions released this 13 Oct 17:10
· 26 commits to main since this release

Added

  • Add --language and [captions].language for caption language selection, with native tracks ranked above translated tracks and a primary-subtag fallback that never selects a different variant
  • Add caption_translated to file metadata and to the MCP metadata result, so the wrapper reports every translated track
  • Add --json for --doctor, --preview, --raw, Markdown mode, and errors, with one versioned document per stream
  • Share the source-caption cache between the CLI and MCP, including --cache and --no-cache overrides

Changed

  • Raise the maximum formatting.chunk_chars from 50,000 to 200,000 for CLI and MCP; keep the 12,000-character default, token allowances, byte limits, and deadlines unchanged
  • Publish package classifiers and project URLs, and state Python 3.14.7 or newer in the README
  • Use the cache for CLI transcripts by default; [cache].enabled defaults to true for CLI and MCP
  • Replace the English-only caption error codes with NO_CAPTIONS and NO_VTT; keep NO_ENGLISH_CAPTIONS and NO_ENGLISH_VTT recognized but unused
  • Bump the source-caption cache payload version, so the wrapper does not reuse earlier snapshots

Fixed

  • Prevent chapter heading-copy failures by validating structured run bodies and inserting canonical headings in Python, without retries, repair, or partial publication
  • Report fixed output validation reasons through CLI and MCP errors without exposing model text, and reject malformed Pi completion Unicode safely