← 返回
数据分析

Media Downloader

Download Video/Music from YouTube/Bilibili/X/etc.
从 YouTube/Bilibili/X 等下载视频/音乐
guoqiao
数据分析 clawhub v0.2.3 1 版本 99587.3 Key: 无需
★ 5
Stars
📥 3,520
下载
💾 437
安装
1
版本
#downloader#latest#media#youtube#yt-dlp

概述

Media Downloader

Smartly download media (Video/Music) from URLs (YouTube, Bilibili, X, etc.) to the appropriate local folders.

  • Video: Save into ~/Movies/ or ~/Videos/.
  • Music: Save into ~/Music/.
  • Playlists: Saves items into a subdirectory (e.g., ~/Music//).

Designed to work with a local Media Server (e.g., Universal Media Server, Jellyfin) for instant playback on TV/devices.

Agent Procedure

When the user provides a URL or asks to download media, you MUST follow this exact sequence:

  1. Acknowledge:
    • Immediately reply to the user: "Downloading with dl skill..."
  1. Execute:
    • Run the script:

```bash

uv run --script ${baseDir}/dl.py ""

```

  1. Capture Path:
    • Read the script output, a path will be printed to stdout at the end, points to either a single file or a folder contains the playlist items.
  1. Upload (Telegram Only):
    • If the user is on Telegram (check context or session) AND the file is audio (mp3/m4a):
    • Use the message tool to send the file to the user:

```json

{

"action": "send",

"filePath": "",

"caption": "Here is your music."

}

```

Usage

Run dl.py as a uv script:

# save into default dirs ~/Music or ~/Movies or ~/Videos
uv run --script ${baseDir}/dl.py <url>

# specify your own output dir
uv run --script ${baseDir}/dl.py <url> -o <out_dir>

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.txt

Setup (User)

This skill will be much more useful if you setup a media server on same machine to share the downloaded media in your LAN:

  1. Install a DLNA/UPnP Media Server (Universal Media Server, miniDLNA, Jellyfin).
  2. Share ~/Music and ~/Movies (or ~/Videos) folders.
  3. Downloaded media will appear automatically on your TV, with apps support DLNA/UPnP, such as VLC.

See example script to setup Universal Media Server on Mac.

版本历史

共 1 个版本

  • v0.2.3 当前
    2026-03-28 11:25 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

A股量化 AkShare

mbpz
A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。
★ 162 📥 59,678
data-analysis

Excel / XLSX

ivangdavila
创建、检查和编辑 Microsoft Excel 工作簿及 XLSX 文件,支持可靠的公式、日期、类型、格式、重算及模板保留功能。
★ 366 📥 139,969
data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 198 📥 64,862