Skip to main content

CLI tool to sync Plex watchlist with Sonarr and Radarr

Project description

Lumarr

A lightweight CLI tool to automatically sync your Plex watchlist and Letterboxd lists with Sonarr and Radarr.

Python Version PyPI version Docker Hub License

Overview

Lumarr monitors your Plex watchlist and Letterboxd activity, automatically adding movies and TV shows to your Sonarr and Radarr instances. It runs as a lightweight CLI tool with support for one-time syncs, scheduled runs, or continuous monitoring.

Key Features

  • Plex Watchlist Sync - Automatically add watchlist items to Sonarr/Radarr
  • Letterboxd Integration - Sync watched movies and watchlists from Letterboxd
  • Smart Duplicate Prevention - Local database tracks synced items
  • Multiple Sync Modes - One-time, scheduled, or continuous monitoring
  • Interactive Configuration - Easy setup wizard for first-time configuration
  • Modular CLI Toolkit - Commands for status checks, history browsing, listing, and service discovery
  • Event Hooks - Trigger shell commands or webhooks on sync completion or errors
  • Docker Support - Run in a container for easy deployment

Quick Start

Installation

Using pip (Recommended):

pip install lumarr

Using Docker:

docker pull blueconfetti/lumarr:latest

From Source:

# Install uv
curl -LsSf https://astral.sh/uv/install.sh | sh

# Clone and install
git clone https://github.com/yourusername/lumarr.git
cd lumarr
uv pip install -e .

See Installation Guide for more installation options.

Configuration

  1. Create config file:

    cp config.example.yaml config.yaml
    
  2. Run interactive wizard:

    lumarr config
    
  3. Or manually edit config.yaml with your API keys and settings

See Configuration Guide for detailed configuration options.

Usage

# Test connections
lumarr status

# Inspect current watchlist and Letterboxd inputs
lumarr list
lumarr list letterboxd --detailed

# Preview sync (dry run)
lumarr sync --dry-run

# Sync once or monitor continuously
lumarr sync
lumarr sync --follow

# Review sync history or clear it when needed
lumarr history
lumarr clear

# Discover service configuration details
lumarr sonarr info
lumarr radarr info

See CLI Reference for all available commands.

How It Works

  1. Connects to Plex (via API or RSS feed) to fetch your watchlist
  2. Optionally fetches Letterboxd watched movies and watchlists
  3. Extracts TMDB, TVDB, and IMDB IDs from metadata
  4. Checks local database to skip already-synced items
  5. Adds new movies to Radarr and TV shows to Sonarr
  6. Records sync history to prevent duplicates

Performance:

  • RSS Feed mode: 1 HTTP request for entire watchlist
  • API mode with caching: ~1-2 requests per sync
  • Follow mode: Continuous monitoring with configurable intervals

Documentation

Requirements

  • Python 3.9 or higher
  • Plex account with authentication token
  • Sonarr and/or Radarr instance
  • Optional: TMDB API key for enhanced ID resolution
  • Optional: Letterboxd account for Letterboxd sync

Deployment Options

Docker (Recommended for Production)

cd docker
docker-compose up -d

See Docker Guide for details.

Systemd Service

[Unit]
Description=Lumarr Sync Service
After=network.target

[Service]
Type=simple
User=your-user
WorkingDirectory=/path/to/lumarr
ExecStart=/usr/bin/lumarr sync --follow
Restart=always

[Install]
WantedBy=multi-user.target

Cron

# Every 6 hours
0 */6 * * * cd /path/to/lumarr && lumarr sync

Architecture

lumarr/
├── src/lumarr/
│   ├── api/                 # API clients (Plex, Sonarr, Radarr, TMDB, Letterboxd)
│   ├── cli/                 # Modular Click-based CLI implementation
│   │   ├── __init__.py      # CLI entrypoint and shared options
│   │   ├── commands/        # Command implementations (sync, list, status, etc.)
│   │   ├── groups/          # Command groups for Radarr/Sonarr helpers
│   │   ├── core/            # Context handling, decorators, hooks, plugin loader
│   │   ├── display/         # Rich console helpers and table formatters
│   │   └── logic/           # CLI workflows (follow mode, baseline, sync helpers)
│   ├── config.py            # Configuration management
│   ├── db.py                # SQLite database operations
│   ├── models.py            # Data models
│   └── sync.py              # Sync orchestration
├── docker/                  # Docker configuration
├── docs/                    # Documentation
├── config.yaml              # Your configuration
└── lumarr.db               # SQLite database (auto-created)

Contributing

Contributions are welcome! Please feel free to submit issues or pull requests.

License

MIT License - see LICENSE for details.

Acknowledgments

This project was inspired by Ombi's watchlist import feature, designed as a lightweight CLI alternative for users who only need watchlist syncing.

Support

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

lumarr-0.4.5.tar.gz (52.8 kB view details)

Uploaded Source

Built Distribution

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

lumarr-0.4.5-py3-none-any.whl (67.2 kB view details)

Uploaded Python 3

File details

Details for the file lumarr-0.4.5.tar.gz.

File metadata

  • Download URL: lumarr-0.4.5.tar.gz
  • Upload date:
  • Size: 52.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for lumarr-0.4.5.tar.gz
Algorithm Hash digest
SHA256 c64d741321f4ada512f343c8cfdad823b902bf635648ed7f7aaf95241c90fddc
MD5 c99e6f6943fda2a167ff4f42c1cab1a6
BLAKE2b-256 30cfaf2602832728096a19ea33c3f0cc9242763b91cf95b0632005435a66e8d6

See more details on using hashes here.

File details

Details for the file lumarr-0.4.5-py3-none-any.whl.

File metadata

  • Download URL: lumarr-0.4.5-py3-none-any.whl
  • Upload date:
  • Size: 67.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for lumarr-0.4.5-py3-none-any.whl
Algorithm Hash digest
SHA256 ce34aa62f4c48d680c23b4e37a20221df1cdd9031a089eeaa39b99b85547dad1
MD5 17e0ab2065329ef5f5172c31284e62aa
BLAKE2b-256 f0dc2a630ee7c88ed1bcccb337fa0e67f406a9011e6c0e934d7c4bfbd2bd6dac

See more details on using hashes here.

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