ASP源码
PHP源码
.NET源码
JSP源码
媒体下载器是 Openclaw 技能生态系统中的一个强大工具,旨在简化获取在线内容的过程。它能自动对下载内容进行分类,将视频放入 ~/Movies,音频放入 ~/Music,是管理本地媒体库用户的必备工具。通过利用 uv 的速度和专业脚本的多功能性,该技能填补了网络内容与本地存储基础设施之间的空白。
无论您是在构建个人存档还是为家庭媒体服务器提供内容,此技能都提供了一种无需手动干预的媒体管理方法。它旨在处理诸如播放列表下载和 T@elegrimm 集成之类的复杂任务,确保您的内容始终在您需要的时间和地点准备就绪。
下载入口:https://github.com/openclaw/skills/tree/main/skills/guoqiao/dl
从源直接安装技能的最快方式。
npx clawhub@latest install dl
将技能文件夹复制到以下位置之一
全局模式~/.openclaw/skills/
工作区
/skills/
优先级:工作区 > 本地 > 内置
将此提示词复制到 OpenClaw 即可自动安装。
请帮我使用 Clawhub 安装 dl。如果尚未安装 Clawhub,请先安装(npm i -g clawhub)。
要利用此项及其他 Openclaw 技能,请确保您已安装 uv 包管理器。按照以下步骤设置下载器:
# 如果尚未安装,请安装所需的 uv 工具
curl -LsSf https://astral.sh/uv/install.sh | sh
# 使用目标 URL 运行下载脚本
uv run --script dl.py ""
# 可选:指定自定义输出目录
uv run --script dl.py "" -o
为了在具有身份验证的平台上增强可靠性,请在根目录中放置一个 .cookies.txt 文件或设置 $COOKIES_FILE 环境变量。
媒体下载器技能遵循严格的组织分类法,以确保您的媒体保持易于访问且整洁:
| 媒体类型 | 目标文件夹 | 描述 |
|---|---|---|
| 视频内容 | ~/Movies/ 或 ~/Videos/ | 来自 YouTube、X 等的标准视频文件。 |
| 音频内容 | ~/Music/ | 提取的音乐或播客文件。 |
| 播放列表 | ~/Music/ |
为分组项目组织的子目录。 |
| 元数据 | .cookies.txt | 受限 URL 的可选身份验证数据。 |
name: dl
description: Download Video/Music from YouTube/Bilibili/X/etc.
author: guoqiao
metadata: {"openclaw":{"always":false,"emoji":"??","homepage":"https://clawhub.ai/guoqiao/dl","os":["darwin","linux","win32"],"requires":{"bins":["uv"]}}}
triggers:
- "/dl "
- "Download this video ..."
- "Download this music ..."
Smartly download media (Video/Music) from URLs (YouTube, Bilibili, X, etc.) to the appropriate local folders.
~/Movies/ or ~/Videos/.~/Music/.~/Music// ).Designed to work with a local Media Server (e.g., Universal Media Server, Jellyfin) for instant playback on TV/devices.
When the user provides a URL or asks to download media, you MUST follow this exact sequence:
Acknowledge:
Execute:
uv run --script ${baseDir}/dl.py ""
Capture Path:
Upload (T@elegrimm Only):
message tool to send the file to the user:{
"action": "send",
"filePath": "",
"caption": "Here is your music."
}
Run dl.py as a uv script:
# save into default dirs ~/Music or ~/Movies or ~/Videos
uv run --script ${baseDir}/dl.py
# specify your own output dir
uv run --script ${baseDir}/dl.py -o
The script will print output path, either a file or a folder.
A optional cookies file could be provided to make yt-dlp more reliable, with which ever of these detected first:
${baseDir}/.cookies.txt$DL_COOKIES_FILE$COOKIES_FILE~/.cookies.txtThis skill will be much more useful if you setup a media server on same machine to share the downloaded media in your LAN:
~/Music and ~/Movies (or ~/Videos) folders.See example script to setup Universal Media Server on Mac.