Getting started
Spool runs on macOS and Linux, natively or in a container. It needs a Usenet provider, a Newznab indexer and somewhere to keep the library. It does not use torrents.
Install it
With Docker
git clone https://github.com/rewtraw/spool && cd spool
mkdir -p data # owned by the user in compose.yaml
$EDITOR compose.yaml # set the user and the path to your media
docker compose up -d --build # http://localhost:7979
The image carries the helper tools Spool calls. Everything Spool keeps lives in /data.
Mount the library and the downloads folder under one path. A finished download is then moved into the library, which takes no time, instead of being copied.
If Spool runs on one machine and the library is on a NAS, the NAS can run a helper: the same image, doing the downloading and filing on the NAS's own disks.
On TrueNAS SCALE, add it as a custom app with the same settings as compose.yaml: port 7979, a dataset for /data, your media dataset at /media, and the apps user (568) as the user.
From source
You need Rust, Bun, and four helper tools: par2 for repair, 7zz for extraction, and ffprobe and ffmpeg for reading media files and checking subtitles.
brew install par2 sevenzip ffmpeg # macOS
sudo apt install par2 7zip ffmpeg # Debian, Ubuntu
git clone https://github.com/rewtraw/spool && cd spool
(cd web && bun install && bun run build) # the server embeds web/dist
cargo run --release -p spool -- serve # http://localhost:7979
Debian's and Ubuntu's 7zip cannot open RAR archives. Spool unpacks the common uncompressed kind itself, so most posts are unaffected. For the rest, install 7-Zip from its own releases, as the container image does.
The first settings
Open the web app. Until Spool has what it needs, Home and Settings show Getting Spool ready, a short list in which each item links to where it is given:
- Where the library is, under Settings, Storage. For a new library, give one folder and Spool makes Movies, TV Shows, Music, Audiobooks, Videos and Downloads inside it. For a library you already have, give its folders instead. If it is on a disk that can be unplugged, Spool works that out, and pauses while the disk is not there instead of writing somewhere else.
- A Usenet provider, under Settings, Connections: its address and sign-in. Test signs in and says what it found.
- An indexer, in the same place: a Newznab indexer's address and API key.
- A TMDB key, in the same place, free from themoviedb.org. Films are looked up with it; series come from TVmaze, which needs none.
- Someone to sign in as, under Settings, People, optional: once anyone has a password the app asks who you are, which matters as soon as anyone else can reach the address.
Everything else has a sensible value already. Settings has four tabs:
| Tab | What it holds |
|---|---|
| Storage | Where the library is, on this machine and on linked ones, where downloads go, and how much room is kept free. |
| Preferences | The household's language, subtitles, the quality profiles and the size to aim for, and compact versions. |
| Connections | Usenet, indexers, TMDB, Plex, OpenSubtitles, books, signing in to video sites, and AI access. |
| People | Who signs in, the players each uses, what they have watched and asked for, and serving the library to players. |
What Spool does by itself, with a button to do each now, is under Activity, Upkeep, beside how the library stands with Plex, the music folders and the book index. What is using the disks, and compact versions to make, are under Activity, Space.
Pausing it
Pause, at the top of Activity, stops Spool doing anything by itself: it still reads the indexer feeds and notes what it would download and why, but downloads nothing of its own accord, and downloads under way wait. What someone asks for while it is paused is put in line, to start when it is set going again. A pause lasts until Resume, through restarts. From the command line:
spool pause
spool resume
spool migrate, which brings a library over from Radarr and Sonarr, leaves Spool paused, so that it can be looked over before it starts: add a few titles, open one and read the verdicts it gives each release. Stop Radarr and Sonarr from managing the same folders before resuming. Two programs filing into one library will fight over the same files.
Titles are added under Discover. One search looks for films and series together: the kind you chose is listed first and the other below it, so a film and the series of the same name are both in front of you.
If you already have a library, read Your library and what Spool does to it before going active.
Coming from Radarr, Sonarr and SABnzbd
spool migrate reads their settings and brings over the catalog, profiles, indexers and Usenet servers. It can be run again safely.
spool migrate \
--radarr-url http://localhost:7878 --radarr-key <key> \
--sonarr-url http://localhost:8989 --sonarr-key <key> \
--radarr-db radarr.db --sonarr-db sonarr.db \
--sab-ini sabnzbd.ini
| Option | What it is for |
|---|---|
--radarr-url, --radarr-key, --sonarr-url, --sonarr-key |
Where the two apps answer, and their API keys. |
--radarr-db, --sonarr-db |
A copy of each app's database. Their APIs hide indexer keys and the Plex token; the databases have them. |
--sab-ini |
A copy of sabnzbd.ini, for the Usenet servers. |
--map FROM=TO |
Turns a path as a container saw it into the path on this machine. Repeat it for each mapping. |
Nothing on disk is moved. Two commands then check the result:
spool check-paths # is every file where Spool's naming would put it?
spool shadow-report # does Spool read past releases as Radarr and Sonarr did?
Running it as a service
Linux. deploy/spool.service is a systemd user unit. The steps to install it are at the top of the file.
macOS. deploy/deploy.sh builds Spool, installs it as a LaunchAgent on a Mac over SSH and restarts it. It reads its settings from the environment or from deploy/local.env:
SPOOL_HOST=my-mac deploy/deploy.sh
Run against a Spool that is already going, the script first asks it whether a restart would interrupt anything: a download being unpacked, an import, a title being moved, someone playing. If so it stops and says what; SPOOL_FORCE=1 restarts anyway. Downloads still coming down are paused and resumed around the restart.
If the library is on a removable disk, set SPOOL_SIGN_IDENTITY to a stable code-signing identity. macOS ties the permission to read a removable disk to the program's signature, and the first read under launchd shows a consent prompt on that Mac's screen. Spool reports that it is waiting for the prompt instead of hanging.
The command line
spool serve [--bind 0.0.0.0:7979] # run the service
spool pause | spool resume # stop or start doing things by itself
spool migrate ... # import from Radarr, Sonarr and SABnzbd
spool check-paths # are existing files where Spool would put them?
spool shadow-report ... # compare with Radarr's and Sonarr's history
spool check-subtitles VIDEO SUBS # is this subtitle file in time? --fix corrects it
spool download x.nzb --out DIR # run one NZB through the engine, outside the library
spool backup DEST # write a consistent copy of the database
Where Spool keeps its data
| System | Folder |
|---|---|
| macOS | ~/Library/Application Support/Spool |
| Linux | ~/.local/share/spool |
| Container | /data |
--data-dir or SPOOL_DATA_DIR puts it elsewhere. The folder holds the database, the saved NZBs, cached artwork, the log and a nightly backup. The database contains indexer keys and Usenet passwords. It is created readable only by its owner, and so are its backups. Settings, General, Connections can name a second folder on another disk for a copy of the backup.