Download YouTube videos and upload them to Pocket Casts Files for offline viewing.
~/skills/pocket-casts/scripts/upload.sh "YOUTUBE_URL"
Or with a custom title:
~/skills/pocket-casts/scripts/upload.sh "YOUTUBE_URL" "Custom Title"
uvx yt-dlp)apt install ffmpeg)apt install jq)```bash
curl -fsSL https://deno.land/install.sh | sh
```
Add to PATH: export PATH="$HOME/.deno/bin:$PATH"
```bash
mkdir -p ~/.clawdbot/credentials/pocket-casts
chmod 700 ~/.clawdbot/credentials/pocket-casts
```
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.
YouTube's bot detection requires cookies from a logged-in browser session.
~/.clawdbot/credentials/pocket-casts/cookies.txt```bash
chmod 600 ~/.clawdbot/credentials/pocket-casts/cookies.txt
```
yt-dlp --remux-video mp4CLAWDBOT_CREDENTIALS - Override credentials directory (default: ~/.clawdbot/credentials)This skill is provided for personal, fair-use purposes only.
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 个版本