chill-putio

mbelinky 的头像作者 mbelinky

自动化chill.institute的torrent/magnet链接到put.io的导入。当需要从chill.institute搜索、扫描或获取torrent/magnet链接并将其添加到put.io时使用,或在调试chill/put.io导入管道(cookies、配置文件、put.io令牌)时使用。

📖 中文导读:自动化chill.institute的torrent/magnet链接到put.io的导入。当需要从chill.institute搜索、扫描或获取torrent/magnet链接并将其添加到put.io时使用,或在调试chill/put.io导入管道(cookies、配置文件、put.io令牌)时使用。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。

name: chill-putio description: Automate chill.institute torrent/magnet ingestion into put.io. Use when asked to search, scan, or fetch torrent/magnet links from chill.institute and add them to put.io, or when troubleshooting the chill/put.io ingestion pipeline (cookies, profiles, put.io token).

Chill → put.io

Quick start

  1. Ensure Chrome is logged in to https://chill.institute on mb-server.
  2. Confirm cookies can be read:
sweetcookie --browser chrome --profile "Default" --domain "chill.institute" --format cookie-header
  1. Scan a page for magnet/torrent links (dry run):
chillput --url "https://chill.institute" --dry-run
  1. Add new links to put.io:
chillput --url "https://chill.institute"

How it works

  • chillput uses sweetcookie (SweetCookieKit CLI) to read Chrome cookies on mb-server.
  • It fetches the provided chill.institute page, extracts magnet/torrent links, and POSTs them to put.io.
  • Dedupe state is stored at ~/.cache/chillput/state.json.

Config

Env file:

  • PUTIO_OAUTH_TOKEN (required)
  • CHILL_COOKIE_DOMAIN (default: chill.institute)
  • CHILL_COOKIE_PROFILE (default: Default)

Location:

  • /Users/mariano/Coding/infra/chillinstitute/.env

Override via CLI:

  • --profile "Default"
  • --domain "chill.institute"
  • --env /path/to/.env

Notes / gotchas

  • Chrome profiles are usually named Default, Profile 1, etc. The displayed Chrome account name is not the profile id.
  • First cookie read may require a macOS Keychain prompt for “Chrome Safe Storage”. Approve once on mb-server.
  • If sweetcookie fails with a profile name, retry without --profile (the CLI already does this fallback).

Useful commands

List available Chrome stores:

sweetcookie --list-stores --browser chrome

Show help:

chillput --help

References

  • See references/usage.md for CLI paths and troubleshooting.