Skip to content

Modules

Optional modules add features outside the core search dispatch and queue management.

Overview

Each module has a switch (ADR-0025). Modules are off by default, and administrators turn them on or off at runtime without restarting the service.

The shared modules API exposes the enabled state of each registered module.

Available modules

The following optional modules are registered:

  • Adult Content (adult): synchronizes performer and studio favourites across configured Stash-box community instances (ADR-0027). A leader loop executes bounded pagination sweeps on a configurable interval (default: 6 hours), deduplicates entities cross-instance using endpoint cross-references, normalized external site URLs, and canonical names, and provides federated search across active instances. It also manages local image sets discovered from configured image_set_dir with streaming delivery and on-disk WebP thumbnails cached in thumbnail_cache_dir. SnatchArr drops .stashignore at the image_set_dir root (Stash v0.31.0 minimum) so Stash skips scanning image sets, skipped when the directory is read-only.
  • Library Processing (library_processing) is off by default and accepts an empty JSON object ({}) as its configuration. Administrators can toggle it, and the selection persists across service restarts.
  • LLM Access (llm): exposes SnatchArr operations as Model Context Protocol (MCP) tools at /api/v1/mcp (ADR-0021).
  • Watch-Aware Modes (watchaware): reads watch state from Jellyfin and Emby. The season gate and removal modes it feeds are planned in ADR-0024. When enabled, the Automation view exposes a Season gate tab (/automation?tab=season-gate) displaying evaluated series and decisions. Decisions emit the watchaware_gate_decided event and notification rule trigger. In observe mode, the season gate evaluates watch data to propose season promotions without modifying Sonarr: when the furthest watched season advances, held seasons within the configured look-ahead window receive promote decisions.

Enabling and disabling modules

Administrators can toggle optional modules in the web interface under System > Modules, or via the REST API:

  • GET /api/v1/system/modules lists all registered optional modules and their current state.
  • GET /api/v1/system/modules/{id} returns the configuration and state of one module.
  • PUT /api/v1/system/modules/{id} updates the configuration and state of one module.

When a module is disabled, its HTTP endpoints return an RFC 9457 HTTP 404 Problem JSON response, its MCP tools are omitted from tool discovery, and its background loops remain inactive without performing work.