微算力 · API 导航与自营网关
API 接入 EN
未登录登录
⬇️

多平台视频智能下载助手

MediaGo · v1.0.0
入口已确认,内容待校验 文件树里有 SKILL.md,但正文还没采回,frontmatter 未核对。
效率 安全 B 级 作者 caorushizi 公开目录收录
769 下载 1 安装 3k 收藏 2 浏览

简介

基于开源 MediaGo 工具,支持 m3u8/HLS 流、Bilibili 及直链视频下载,需本地部署服务配合运行。

原始描述

Download videos from m3u8/HLS streams, Bilibili, and direct URLs using MediaGo. 下载视频、m3u8直播流、B站视频。 Triggers on: download video, 下载视频, 下载这个链接, 帮我下载, m3u8 down...

通过你的 Agent 添加

安装目录:mediago/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/mediago/
Codex CLI~/.codex/skills/mediago/
DeepSeek Harness~/.agents/skills/mediago/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

中文使用说明 来自收录源

核心用法

MediaGo Video Downloader 是一款面向开发者和高级用户的视频下载自动化技能。该技能通过与本地运行的 MediaGo 实例通信,实现视频下载任务的创建、监控和管理。用户首次使用时需配置 MediaGo 服务端地址(桌面应用或 Docker 部署),技能会自动检测链接类型(Bilibili、m3u8 流或直链)并创建对应下载任务。支持 3 秒间隔的状态轮询,实时反馈下载进度,任务完成后自动返回本地文件路径。

显著优点

  1. 多源兼容:原生支持 m3u8/HLS 流媒体、Bilibili 视频及任意直链下载,覆盖主流视频获取场景
  2. 智能类型识别:自动从 URL 特征判断下载类型,无需用户手动指定
  3. 灵活部署:支持 Docker 容器化和桌面应用两种服务端运行模式,适应不同技术背景用户
  4. 开源可控:基于 MIT 许可证开源,代码透明,无商业服务绑定风险
  5. 双语支持:内置中英文响应能力,自动匹配用户语言偏好

潜在缺点与局限性

  1. 依赖本地服务:必须独立安装并运行 MediaGo 服务端,无法即开即用,配置门槛较高
  2. 网络环境敏感:服务端与客户端需在同一网络或正确配置端口转发,远程场景受限
  3. 无内置播放器:仅提供下载功能,不包含视频预览或在线播放能力
  4. 版权合规风险:Bilibili 等平台视频下载需遵守平台服务条款,存在账号或法律风险
  5. 轮询效率:3 秒轮询机制在大量并发任务时可能产生较高请求负载

适合的目标群体

  • 开发者/运维人员:熟悉 Docker 或本地服务部署,需要批量获取视频资源的工程师
  • 内容创作者:需下载 Bilibili、m3u8 直播流进行二次剪辑、素材整理的视频工作者
  • 技术爱好者:愿意自建服务、追求数据本地化的隐私敏感型用户
  • 科研人员:需要下载在线课程、学术直播等教育视频资源的研究者

常规风险

  • 服务可用性:MediaGo 进程崩溃或端口冲突将导致技能完全不可用,需用户自行排查
  • 存储管理:下载目录需手动清理,无自动磁盘空间管理,存在存储溢出风险
  • API 安全:若配置 API Key 泄露,本地服务可能被未授权访问,建议在可信网络环境使用
  • 版本兼容性:技能与 MediaGo 服务端版本需匹配,升级时可能出现接口不兼容
  • 长时间任务:超过 5 分钟的下载任务会脱离主动轮询,需用户自行查询状态或依赖服务端通知

技能正文


name: mediago description: > Download videos from m3u8/HLS streams, Bilibili, and direct URLs using MediaGo. 下载视频、m3u8直播流、B站视频。 Triggers on: download video, 下载视频, 下载这个链接, 帮我下载, m3u8 download, 设置mediago地址, configure mediago, mediago api key. Requires a running MediaGo instance (desktop app or Docker). license: MIT metadata: author: caorushizi version: "1.0.0" homepage: "https://github.com/caorushizi/mediago"

MediaGo Video Downloader

Download videos from m3u8/HLS streams, Bilibili, and direct URLs via a running MediaGo instance.

Configuration

Config file: ~/.mediago-skill.json

{
  "url": "http://localhost:8899",
  "apiKey": ""
}

First-time Setup / 首次配置

If ~/.mediago-skill.json does not exist, show the following message (respond in the user's language):

EN: "MediaGo is not configured yet. To use this skill:

1. Install MediaGo (if you haven't already):

2. Initialize — tell me your MediaGo address, for example:

  • Docker: 设置 mediago 地址为 http://localhost:8899
  • Desktop app: 设置 mediago 地址为 http://192.168.x.x:39719"

CN: "MediaGo 还没有配置。要使用此功能:

1. 安装 MediaGo(如果还没装):

2. 初始化配置 — 告诉我你的 MediaGo 地址,例如:

  • Docker:设置 mediago 地址为 http://localhost:8899
  • 桌面客户端:设置 mediago 地址为 http://192.168.x.x:39719"

When the user provides the URL (and optionally an API key), write it to ~/.mediago-skill.json.

Updating Config / 更新配置

Trigger on phrases like:

  • EN: "set mediago url to ...", "mediago api key is ...", "my mediago is at ..."
  • CN: "设置 mediago 地址为 ...", "mediago api key 是 ...", "我的 mediago 跑在 ..."

Read the existing config, update the relevant field, and write it back.

API Reference

All API calls use curl. Read url and apiKey from ~/.mediago-skill.json before each call.

If apiKey is set, add header: -H "X-API-Key: API_KEY"

Health Check

curl -s BASE_URL/healthy

Returns {"success":true,...} if service is running.

Create & Start Download

curl -s -X POST BASE_URL/api/downloads \
  -H "Content-Type: application/json" \
  -d '{"tasks":[{"type":"TYPE","url":"VIDEO_URL","name":"NAME"}],"startDownload":true}'
  • type (required): m3u8, bilibili, or direct
  • url (required): video URL
  • name (optional): custom filename

Type detection from URL:

  • Contains bilibili.com or b23.tv → bilibili
  • Contains .m3u8 → m3u8
  • Otherwise → direct

Response data is an array of created tasks. Extract data[0].id as the task ID.

Get Task Status

curl -s BASE_URL/api/downloads/TASK_ID

Response data fields: id, name, status, type, exists, file.

Status values: pending, downloading, success, failed, stopped.

List Downloads

curl -s "BASE_URL/api/downloads?current=1&pageSize=20"

Response: data.total (count) and data.list (array of tasks).

Get Config (download directory etc.)

curl -s BASE_URL/api/config

Returns config including local (download directory path).

Download Workflow / 下载流程

  1. Check config / 检查配置: Read ~/.mediago-skill.json. If missing, run the First-time Setup flow above.
  2. Health check / 健康检查: Verify service is reachable. If not, tell the user MediaGo may not be running and guide them to start it.
  3. Create task / 创建任务: POST to /api/downloads with startDownload: true.
  4. Poll progress / 轮询进度: GET /api/downloads/TASK_ID every 3 seconds. Report status to user.
  5. Report result / 报告结果:
    • success → EN: "Download complete! File: [path]" / CN: "下载完成!文件:[path]"
    • failed → EN: "Download failed." / CN: "下载失败。"
    • If polling exceeds 5 minutes, tell user the download is still in progress.

Important Notes / 注意事项

  • Language / 语言: Always respond in the same language the user is using (Chinese or English).
  • If API returns HTTP 401, tell the user their API key may be wrong and ask them to update it.
  • Always auto-detect the download type from the URL unless the user specifies it.
  • If name is not provided, omit it from the request — the server will auto-generate one.

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

content-mediaproductivityautomationapidocker

同类 Skill