@openpets/youtube
v1.0.3
Published
YouTube plugin for OpenCode - extract transcripts, subtitles, and video metadata using yt-dlp
Maintainers
Readme
YouTube Plugin for OpenPets
Extract transcripts, subtitles, and video metadata from YouTube videos.
Requirements
This plugin requires yt-dlp to be installed:
# macOS
brew install yt-dlp
# Linux/Windows via pip
pip install yt-dlp
# Using uv (recommended)
uv pip install yt-dlpTools
youtube-test-connection
Test plugin setup and yt-dlp installation.
youtube-get-subtitles
Extract subtitles/transcript from a YouTube video.
Parameters:
videoUrl(required): YouTube video URLlanguage(optional): Subtitle language code (default: 'en')autoGenerated(optional): Include auto-generated subtitles (default: true)format(optional): Output format - 'txt', 'srt', 'vtt', or 'json' (default: 'txt')
youtube-get-video-info
Get detailed video metadata including available subtitle languages.
Parameters:
videoUrl(required): YouTube video URL
Example Usage
# Get plain text transcript
opencode run "get the transcript from https://www.youtube.com/watch?v=VIDEO_ID"
# Get subtitles in Spanish
opencode run "get spanish subtitles from https://www.youtube.com/watch?v=VIDEO_ID"
# Get video metadata
opencode run "get info about https://www.youtube.com/watch?v=VIDEO_ID"License
MIT
