AgentSkillsCN

getmedia

从 URL 中提取视频与音频下载链接(磁力链接、直链下载、Thunder 下载、ed2k 下载、m3u8 等)。当用户提供了某个网址,并希望从该页面中找到可下载的媒体链接时,例如电影下载站、音乐网站或视频平台,即可调用此技能。

SKILL.md
--- frontmatter
name: getmedia
description: Extracts video and audio download links (magnet, direct download, thunder, ed2k, m3u8, etc.) from URLs. This skill should be used when the user provides a URL and wants to find downloadable media links from that page, such as movie download sites, music sites, or video platforms.

GetMedia

Extract video and audio download links from web pages, including magnet links, direct download URLs, thunder links, and other media formats.

Supported Link Types

TypePatternCommon Sources
Magnetmagnet:?xt=urn:btih:...电影天堂, BT站点
Direct Download.mp4, .mkv, .avi, .mp3, .flac各类资源站
Thunder/迅雷thunder://...国内资源站
ED2Ked2k://...电驴资源
M3U8 Stream.m3u8视频流媒体
Baidu Panpan.baidu.com/s/...百度网盘分享
Aliyun Panaliyundrive.com/s/...阿里云盘分享

Workflow

  1. Receive URL from user
  2. Fetch the webpage using WebFetch with the extraction prompt
  3. Parse and organize all found media links
  4. Present links in a clean, organized format with usage instructions

WebFetch Prompt

When fetching the URL, use this prompt:

code
查找页面中所有的下载链接,包括:
1. 磁力链接 (magnet:开头)
2. 直接下载链接 (.mp4, .mkv, .avi, .mp3, .flac, .wav, .aac等)
3. 迅雷链接 (thunder://开头)
4. ED2K链接 (ed2k://开头)
5. 百度网盘链接 (pan.baidu.com)
6. 阿里云盘链接 (aliyundrive.com)
7. M3U8流媒体链接 (.m3u8)
8. 其他下载链接

提取完整的链接地址,并说明每个链接对应的资源名称和格式。

Output Format

Present extracted links as follows:

markdown
**资源名称**: [从页面提取的标题]

| 类型 | 链接 |
|------|------|
| [链接类型] | `[完整链接]` |

**下载建议**: [根据链接类型给出下载工具建议]

Download Tool Recommendations

Link TypeRecommended Tools
MagnetqBittorrent, Transmission, BitComet
Thunder迅雷
ED2KeMule, 迅雷
Directwget, curl, IDM, 浏览器
M3U8ffmpeg, N_m3u8DL-RE
Baidu Pan百度网盘客户端
Aliyun Pan阿里云盘客户端

Error Handling

  • No links found: Report "未找到下载链接" and suggest checking if the page requires login or has anti-scraping protection
  • Page inaccessible: Report the error and suggest the user try again or provide an alternative URL
  • Multiple formats: List all options and indicate the best quality version