← 返回
内容创作 Key 中文

Youtube → Pocket Casts

Download YouTube videos and upload them to Pocket Casts Files for offline viewing. For personal use with content you own or have rights to.
下载YouTube视频并上传到Pocket Casts Files以便离线观看。仅供个人使用,内容须已获授权。
manuelhettich
内容创作 clawhub v1.0.0 1 版本 99910.7 Key: 需要
★ 0
Stars
📥 2,237
下载
💾 0
安装
1
版本
#latest

概述

Pocket Casts YouTube Uploader

Download YouTube videos and upload them to Pocket Casts Files for offline viewing.

Usage

~/skills/pocket-casts/scripts/upload.sh "YOUTUBE_URL"

Or with a custom title:

~/skills/pocket-casts/scripts/upload.sh "YOUTUBE_URL" "Custom Title"

Prerequisites

Required

  • yt-dlp - YouTube downloader (via uv: uvx yt-dlp)
  • ffmpeg - Video processing (apt install ffmpeg)
  • curl - HTTP requests (usually pre-installed)
  • jq - JSON parsing (apt install jq)

Recommended

  • deno - JavaScript runtime for yt-dlp challenges:

```bash

curl -fsSL https://deno.land/install.sh | sh

```

Add to PATH: export PATH="$HOME/.deno/bin:$PATH"

Setup

  1. Create credentials directory:

```bash

mkdir -p ~/.clawdbot/credentials/pocket-casts

chmod 700 ~/.clawdbot/credentials/pocket-casts

```

  1. Add Pocket Casts refresh token:

Get your refresh token from browser dev tools while logged into pocketcasts.com, then:

```bash

cat > ~/.clawdbot/credentials/pocket-casts/config.json << 'EOF'

{

"refreshToken": "YOUR_REFRESH_TOKEN_HERE"

}

EOF

chmod 600 ~/.clawdbot/credentials/pocket-casts/config.json

```

The refresh token lasts ~1 year. Access tokens are fetched automatically.

  1. Add YouTube cookies (required for most videos):

YouTube's bot detection requires cookies from a logged-in browser session.

  • Install "Get cookies.txt LOCALLY" browser extension (or similar)
  • Go to youtube.com while logged in
  • Export cookies via the extension
  • Save to ~/.clawdbot/credentials/pocket-casts/cookies.txt

```bash

chmod 600 ~/.clawdbot/credentials/pocket-casts/cookies.txt

```

How It Works

  1. Downloads video via yt-dlp --remux-video mp4
  2. Refreshes Pocket Casts access token using stored refresh token
  3. Requests presigned upload URL from Pocket Casts API
  4. PUTs file to S3 via presigned URL
  5. Deletes local video file

Environment Variables

  • CLAWDBOT_CREDENTIALS - Override credentials directory (default: ~/.clawdbot/credentials)

Notes

  • Files appear in the Pocket Casts "Files" tab
  • Videos play natively in the app (iOS/Android/Web)
  • Max file size depends on your Pocket Casts subscription (~2GB for Plus)
  • Cookies may need refreshing if YouTube blocks requests

⚠️ Legal Disclaimer

This skill is provided for personal, fair-use purposes only.

  • YouTube Terms of Service prohibit downloading videos except via official means. Downloading may violate YouTube's ToS depending on your jurisdiction and intended use.
  • Pocket Casts Terms require that you own or have the rights to any media you upload to your Files library.
  • Copyright law varies by country. Downloading and storing copyrighted content without permission may be illegal in your jurisdiction.

By using this skill, you accept full responsibility for ensuring your use complies with all applicable terms of service and laws. The authors disclaim any liability for misuse.

Recommended uses: Personal recordings, Creative Commons content, videos you created, or content where the creator has explicitly permitted downloading.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-28 17:04 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

AdMapix

fly0pants
广告情报与应用数据分析助手,支持搜索广告素材、分析应用排名、下载量、收入及市场洞察,用于广告素材和竞品分析。
★ 295 📥 136,553
content-creation

Humanizer

biostartechnology
消除AI写作痕迹,使文本更自然真实。基于维基百科"AI写作特征"指南,识别并修正夸张象征、宣传用语、肤浅-ing分析、模糊归因、破折号滥用、三项排比、AI词汇、负面平行结构及冗长连接词等模式。
★ 862 📥 200,230
content-creation

Baidu Wenku AIPPT

ide-rea
使用百度文库 AI 智能生成 PPT,自动根据内容选择模板。
★ 66 📥 46,247