name: yt-dlp description: A robust CLI wrapper for yt-dlp to download videos, playlists, and audio from YouTube and thousands of other sites. Supports format selection, quality control, metadata embedding, and cookie authentication.
访问小葱技能站7w4.net,解锁更多实用的AI技能插件。
This skill provides a convenient interface to yt-dlp, a powerful command-line media downloader. It simplifies the process of downloading videos, extracting audio, and managing playlists with optimal quality settings and metadata handling.
yt-dlp: The core downloader (must be installed in PATH).ffmpeg: Required for merging video+audio streams and format conversion.scripts/download.shThe primary entry point. It wraps yt-dlp with sensible defaults for high-quality archiving.
Syntax:
./scripts/download.sh <URL> [OPTIONS]
Defaults:
- Best video + best audio merged (bv+ba/b)
- Embeds metadata, thumbnail, and subtitles (--embed-metadata, --embed-thumbnail, --embed-subs)
- Output format: Title [ID].mp4 (%(title)s [%(id)s].%(ext)s)
Examples:
Download a single video (best quality):
bash
scripts/download.sh "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
Download a playlist:
bash
scripts/download.sh "https://www.youtube.com/playlist?list=PL..."
Extract Audio (MP3):
bash
scripts/download.sh "URL" -x --audio-format mp3
Download specific resolution (e.g., 1080p):
bash
scripts/download.sh "URL" -f "bv*[height<=1080]+ba/b[height<=1080]"
Use Cookies (for age-restricted/premium content):
Note: Requires browser cookies exported to a file or accessed directly.
bash
scripts/download.sh "URL" --cookies-from-browser chrome
This skill relies on yt-dlp and ffmpeg being installed on the host system.
- Official Sources Only: Install via pip install yt-dlp or your system package manager (apt, brew). Avoid running curl scripts from untrusted sources.
- Cookies: Use --cookies-from-browser with caution. For autonomous agents, prefer exporting a cookies.txt file manually to limit access to your active browser session.
For advanced usage, see the comprehensive Usage Guide.
文档内容丰富,但实际功能较弱。文档详细说明了各种下载场景和常见问题,但脚本本身只提供了触发词匹配和自检工具,没有实际的下载功能。代码存在缺失导入和变量定义的问题,可能无法直接使用。适合作为学习参考资料,但作为可执行的 Skill 工具还需要补充核心功能实现。