Install
openclaw skills install aria2-download通过 Aria2 RPC 添加下载任务,支持实时进度监控。
openclaw skills install aria2-download通过 Aria2 RPC 添加下载任务,支持实时进度监控。
| 变量 | 默认值 | 说明 |
|---|---|---|
ARIA2_RPC_URL | http://localhost:6800/jsonrpc | RPC 地址 |
ARIA2_SECRET | - | RPC 密钥 |
ARIA2_DIR | - | 下载目录 |
export ARIA2_RPC_URL="http://10.0.0.1:6800/jsonrpc"
export ARIA2_SECRET="88888888"
export ARIA2_DIR="/mnt/sda1/download"
aria2-download add "https://example.com/video.mp4"
aria2-download status <gid>
aria2-download progress <gid>
aria2-download watch <gid> [间隔秒数]
aria2-download wait <gid>
aria2-download list
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ 下载完成!
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📁 文件: video.mp4
📂 路径: /mnt/sda1/download
💾 大小: 100.50 MB (1文件)
📊 状态: 已完成
📈 进度: 100%
📥 下载量: 100.50 MB
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
████████████████████ 100.0% | 10.0MB/s | video.mp4
docker run -d --name aria2 \
-p 6800:6800 \
-v /path/to/downloads:/downloads \
-e ARIA2_SECRET=88888888 \
p3terx/aria2-pro
# Ubuntu/Debian
apt install aria2
# 启动 RPC
aria2c --enable-rpc --rpc-listen-all=true --rpc-secret=88888888 --dir=/path/to/downloads
brew install aria2
# 一键解析+下载
x-aria-download "https://x.com/user/status/123"
或手动:
# 1. 解析帖子
URL=$(x-media-parser "https://x.com/user/status/123" | jq -r '.media.directUrl')
# 2. 添加下载
aria2-download add "$URL"