Universal Video Downloader
Download videos from almost any platform using the powerful yt-dlp tool.
Features
- - Platform Support: YouTube, Instagram, TikTok, Twitter/X, Facebook, and many more.
- Quality Selection: Choose from 144p up to 4K/8K resolutions.
- Automatic Cleanup: Files are deleted from the server immediately after successful upload to the chat.
- Smart Merging: Automatically merges high-quality video and audio streams into a single MP4 file.
Workflow
- 1. Trigger: User sends a video link (e.g., YouTube, Instagram).
- Information Gathering: The agent uses
scripts/download.py info to fetch available qualities and the video title. - User Choice: The agent presents resolutions to the user and asks which one they prefer.
- Download: Once selected, the agent runs
scripts/download.py download with the specific Format ID. - Delivery: The agent sends the resulting file using the
message tool with filePath. - Cleanup: The agent must delete the file from disk using
rm immediately after the message is successfully sent to save disk space.
Usage for Agents
1. Fetch Video Info
CODEBLOCK0
2. Download Specific Format
CODEBLOCK1
Safety & Storage
- - This skill is intended for temporary processing.
- CRITICAL: Always delete the downloaded file after the user receives it to maintain disk space.
通用视频下载器
使用强大的yt-dlp工具,从几乎所有平台下载视频。
功能特点
- - 平台支持: YouTube、Instagram、TikTok、Twitter/X、Facebook 等众多平台。
- 画质选择: 支持从144p到4K/8K分辨率的选择。
- 自动清理: 文件成功上传到聊天后,立即从服务器删除。
- 智能合并: 自动将高质量视频和音频流合并为单个MP4文件。
工作流程
- 1. 触发: 用户发送视频链接(例如 YouTube、Instagram)。
- 信息收集: 代理使用 scripts/download.py info 获取可用画质和视频标题。
- 用户选择: 代理向用户展示分辨率选项,并询问其偏好。
- 下载: 选择完成后,代理使用特定的格式ID运行 scripts/download.py download。
- 交付: 代理使用带有 filePath 参数的 message 工具发送生成的文件。
- 清理: 代理必须在消息成功发送后立即使用 rm 从磁盘删除文件,以节省磁盘空间。
代理使用说明
1. 获取视频信息
bash
python3 scripts/download.py info URL
2. 下载指定格式
bash
python3 scripts/download.py download URL FORMAT_ID
安全与存储
- - 此技能仅用于临时处理。
- 关键提示: 用户接收文件后,务必删除下载的文件以维护磁盘空间。