360 Secure SkillHub
360 安全技能中心

Media Orchestrator

统一处理来自 WhatsApp/Telegram 等聊天平台的音视频与 Spotify 请求:用 yt-dlp 的 ytsearch1 检索并下载最高质量媒体到 OpenClaw 工作区,再通过 message 工具的 filePath 静默投递;Spotify 请求经 Zero-Auth 抓取元数据并以 JSON 契约持久化,供 WebUI 同步播放。

sieershafilone
sieershafilone
热度 82.47
最近更新 2026-05-11 15:54:35
分类:自动化依赖:代码执行 / 读写文件 / 第三方 API应用场景:工作流 / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add media-orchestrator
Metadata
name
media-orchestrator
description
Unified skill for resolving, downloading, and delivering media (audio/video) to chat platforms. Integrates yt-dlp for resolution and handles Spotify metadata sync.

Media Orchestrator

This skill centralizes the logic for handling all media requests (audio, video, Spotify tracks) from chat platforms like WhatsApp and Telegram. It leverages yt-dlp for robust search and download capabilities from YouTube and performs Spotify metadata resolution for WebUI integration.

⚙️ How it Works

  1. Resolution: Upon receiving a media request, the orchestrator uses yt-dlp's ytsearch1: functionality to find the highest quality match from YouTube.
  2. Download: The selected media (audio or video) is downloaded directly into the OpenClaw workspace.
  3. Delivery: The downloaded file is then dispatched to the requesting chat platform (WhatsApp/Telegram) using the message tool's filePath argument, ensuring silent delivery as per protocol.
  4. Spotify Sync: For Spotify-specific requests, the orchestrator resolves track metadata via Zero-Auth scraping (bypassing direct API holds) and persists this data as a JSON contract in the workspace, enabling synchronized playback in the OpenClaw WebUI.

📂 Workspace Paths

  • Primary Workspace: /home/ky11rie/.openclaw/workspace/
    • Raw downloaded media files (.mp4, .mp3, etc.) reside here temporarily.
  • Spotify Metadata: /home/ky11rie/.openclaw/workspace/media/spotify/
    • Stores Spotify track contracts (e.g., track_id.json) generated by the spotify-surface component.
  • Skill Scripts: /home/ky11rie/.openclaw/workspace/skills/spotify-surface/scripts/
    • Contains the dedicated logic engine for Spotify integration.

🛠️ Commands

This skill acts as an underlying orchestrator, processing natural language requests. Example intents it handles:

  • send audio file song: [song name]
  • send video file mp4 480p: [video name]
  • play [spotify track or url] (leveraging spotify-surface)