Skip to main content

Automatically grab the releases SeaDex recommends for the anime in your Sonarr and Radarr libraries

Project description

Pearlarr

PyPI Python Actions License

Pearlarr automatically grabs the releases SeaDex recommends for the anime in your Sonarr and Radarr libraries.

SeaDex is an index of the highest quality releases for a given anime. On a schedule, Pearlarr maps your library to SeaDex's entries, compares each recommendation against what you already have, grabs anything missing or outdated through qBittorrent, and can shepherd the download into Sonarr and notify you on Discord:

A Pearlarr grab notification in Discord: the release, its tracker, size, and audio, the episodes covered, the group being replaced, and SeaDex's notes

How it works

Each run walks your library title by title:

  1. Map - Sonarr series and Radarr movies are resolved to AniList IDs (the key SeaDex indexes by) through three public ID-mapping sources.
  2. Check - the title's SeaDex entry is fetched, unless the cache shows nothing relevant changed since the last run.
  3. Select - the entry's torrents are cut down to the preferred release: your tag and tracker filters, SeaDex's "best" marks, your audio preference.
  4. Compare - the picks are matched against what the arr already has (release groups, episodes, file sizes), so only missing or outdated releases go further.
  5. Grab - the release is added to qBittorrent with your category and tags, a Discord notification goes out, and the result is cached.
  6. Import (optional, Sonarr) - Pearlarr waits for the downloads to finish and shepherds them into Sonarr, stepping in with a manual import when Sonarr can't place the files itself.

Here is that walk on a three-title library - one title already has SeaDex's pick, two get grabbed, and the wait pass drives both imports home:

A Pearlarr run: the boot steps connect to Sonarr and qBittorrent, three series are checked - Cowboy Bebop already has SeaDex's pick, while Frieren and Fullmetal Alchemist: Brotherhood are grabbed - and the wait pass shows live download progress until both imports land in Sonarr

Runs are incremental and safe to repeat: results live in a SQLite cache, a title is re-checked only when SeaDex or your arr changed something, and an interrupted run never corrupts state.

Install

Coming from upstream SeaDexArr? The config format and data locations changed - see migrating from upstream first.

Docker Compose (recommended)

Copy docker-compose.example.yml to docker-compose.yml (or fold the pearlarr service into an existing stack), create the config directory yourself, and bring it up:

$ mkdir -p ./config
$ docker compose up -d pearlarr

On first boot the container writes a starter config.yml into ./config and restarts; each run fails with a one-line error until the file is filled in. Fill it in, then:

$ docker compose restart pearlarr
$ docker compose logs -f pearlarr

The container schedules its own runs; set PEARLARR_CRON to change the cadence. One-off commands run through the same service:

$ docker compose run --rm pearlarr run single --sonarr
$ docker compose run --rm pearlarr cache stats

Everything operational lives in docs/deployment.md: permissions and PUID/PGID, timezones, custom CAs, image tags, stopping safely, backups, upgrades.

uv / pipx / pip

Pearlarr needs Python 3.13 or newer; uv or pipx give it its own environment (and uv fetches a matching Python if your system's is too old):

$ uv tool install pearlarr    # or: pipx install pearlarr

Plain pip install pearlarr works too, as does pip install -e . from a clone for the cutting edge.

First run

The step-by-step version of this section, with expected output, is docs/getting-started.md.

$ pearlarr config init
$ pearlarr paths          # shows where config.yml landed

Fill in just your Sonarr and/or Radarr connection first, then run one pass:

$ pearlarr run single

Without qBittorrent credentials, every run is a preview: Pearlarr evaluates your whole library and reports everything it would grab, but grabs nothing and records nothing. That is the recommended way to check a new setup - read the preview's summary, adjust the config, repeat. When the preview picks what you'd pick, add qbittorrent.host, username, and password, and the same command grabs for real. (run single --dry-run simulates a run with no side effects even after credentials are set.)

Bare pearlarr runs the scheduled loop, one cycle every schedule.interval_hours; under Docker the container's cron owns the cadence instead.

Configuration

config.yml is nested YAML in nine groups:

  • sonarr / radarr - connection details and per-arr behavior (unmonitored handling, torrent category).
  • qbittorrent - WebUI credentials (blank = preview mode), tags, extra client options.
  • seadex - how a release is chosen: tracker and tag filters, best/dual-audio preference, the private-release policy.
  • imports - the wait-for-completion and Sonarr manual-import pass.
  • notifications - the Discord webhook and a generic JSON webhook.
  • schedule - the bare-metal loop's cadence.
  • mappings - override or disable the ID-mapping sources.
  • advanced - request pacing, cache lifetime, arr-activity detection, log level and format.

Every key, with its default, allowed values, and description, is in docs/configuration.md - generated from the source, so it is always current. The starter config carries the same documentation as comments, and a $schema line gives editors completion and validation. The config is validated on load: an unknown or misspelled key fails with an error naming it rather than being silently ignored.

pearlarr config validate checks the file and reports what a run would use; pearlarr config show prints the effective configuration with secrets redacted - safe to paste into a bug report.

Scope and limitations

  • Downloads come from public trackers only, currently Nyaa, AnimeTosho, and RuTracker. A winning release on another public tracker is skipped with a warning and re-considered once support lands.
  • Private releases are never grabbed - SeaDex carries no download link for them, and no private-tracker auth is supported. seadex.private_releases decides what happens when a title's preferred release is private-only.
  • qBittorrent is the only download client; Usenet is out of scope. More clients and trackers are on the roadmap.
  • The supported interfaces are the CLI, the config schema, the JSON event stream, and the notification payloads. Every Python import path is internal and may change without notice.
  • Support is best-effort by a single maintainer. SECURITY.md states what is promised - notably that logs and config show output never contain secrets, so they are safe to paste.

Compatibility

Supported
Sonarr 4.x (the v3 API)
Radarr 5.x (the v3 API)
qBittorrent 4.1 or newer, WebUI enabled
Python 3.13+ (the Docker image ships its own 3.14)
OS Linux, macOS, Windows (CI covers Linux and Windows); Docker images for amd64 and arm64

Documentation

Acknowledgements

Pearlarr is a fork of SeaDexArr, originally created by bbtufty. Release data comes from the SeaDex project, which Pearlarr is not affiliated with; ID mappings come from AniBridge Mappings, Kometa Anime-IDs, and Anime-Lists.

Pearlarr is licensed under the GPL-3.0-or-later.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pearlarr-1.0.1.tar.gz (332.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pearlarr-1.0.1-py3-none-any.whl (369.7 kB view details)

Uploaded Python 3

File details

Details for the file pearlarr-1.0.1.tar.gz.

File metadata

  • Download URL: pearlarr-1.0.1.tar.gz
  • Upload date:
  • Size: 332.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pearlarr-1.0.1.tar.gz
Algorithm Hash digest
SHA256 af3a95fbf58f713e85b504072eb6239e86c08e1563c074db0998cf490ce03d47
MD5 4e75217107325bd3e4368aa682714bbf
BLAKE2b-256 a4b3003df9a052b5a9afac833485a98085da297c28eb2f9e3f851dbdb4534839

See more details on using hashes here.

Provenance

The following attestation bundles were made for pearlarr-1.0.1.tar.gz:

Publisher: publish_pypi.yaml on trevinbrooks/pearlarr

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pearlarr-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: pearlarr-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 369.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pearlarr-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d2a9ec73cbf193db8890e5feb8bf5a743d20b293cf36c1c5f4f817f43b392c08
MD5 65dbadbe3dbd7753d771da44fae27be9
BLAKE2b-256 88b8cdcaf4c5fcc91ffb0bcccd3794b44da3b92cf7979b836845da0392123fbc

See more details on using hashes here.

Provenance

The following attestation bundles were made for pearlarr-1.0.1-py3-none-any.whl:

Publisher: publish_pypi.yaml on trevinbrooks/pearlarr

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page