# PlexReaper configuration. Copy to plex-reaper.toml. Secrets go in .env (PLEX_URL, PLEX_TOKEN). [plex] url = "http://localhost:32400" # token = "" # prefer PLEX_TOKEN in .env libraries = [] # Plex section ids to scan; empty = every movie and show library history_prior = true # read /status/sessions/history/all as a weak prior for pre-Tautulli watches # One entry per Plex server. Both servers here mount the same files, so evidence is unioned. [[tautulli]] name = "main" db = "/docker/appdata/tautulli/config/tautulli.db" [[tautulli]] name = "cf" db = "/docker/appdata/tautulli-cf/config/tautulli.db" # Radarr / Sonarr instances for execution and enrichment. API keys come from .env as _API_KEY # (name upper-cased, '-' → '_'). `libraries` lists the Plex section ids each instance owns. # `[arr.downgrade]` maps a title's current quality profile to the one 'downgrade' switches it to before # re-searching; titles on any other profile (anime, foreign, 3D…) are refused. `downgrade_profile = "…"` # would instead be a catch-all fallback. [[arr]] name = "radarr" type = "radarr" url = "http://localhost:7878" libraries = [2, 6, 10] # Movies, Obscure, Sports - Recent [arr.downgrade] # current profile -> profile after 'downgrade'; anything else is refused "Any to 2160p Web Max" = "SD to 1080p Web Max" "SD to 2160p Web Max" = "SD to 1080p Web Max" [[arr]] name = "radarr3d" type = "radarr" url = "http://radarr3d:7878" # not published on the host; use the container name or its traefik hostname libraries = [1] # Movies - 3D [[arr]] name = "sonarr" type = "sonarr" url = "http://localhost:8989" libraries = [3, 4, 5, 7] # TV Shows, Kids, Anime, Daily [arr.downgrade] "SD to 2160p Web Max" = "SD to 1080p Web Max" "SD to 2160p" = "SD to 1080p" # Optional. TMDB_API_KEY in .env enables vote count, popularity and streaming providers in the panel. [tmdb] region = "US" providers = [] # providers the household subscribes to, e.g. ["Netflix", "Max"] [evidence] admin_user_ids = [] # empty = Tautulli's is_admin flag qc_window_days = 7 # admin sessions under the touch threshold within this many days of adding are QC full_threshold = 85.0 # percent complete that counts as a genuine watch touch_threshold = 15.0 # below this it was only started [protect] genres = ["Sport"] title_patterns = ['(?i)\bIMAX\b'] libraries = [] # e.g. [1] to never list "Movies - 3D" # Signal weights. See docs/design-brief.md. Tune, then ablate: keep what changes decisions. [weights] never = 30 ghost = 5 abandon = 8 abandon_cap = 3 age_max = 15 age_floor_days = 365 age_ceiling_days = 1460 size_max = 15 bloat = 5 bloat_gb_per_hour = 8.0 lowrate = 5 lowrate_threshold = 5.0 verylow = 10 verylow_threshold = 3.0 watched = -40 watched_per_user = -10 watched_cap = -70 recent = -20 recent_days = 365 prior = -25 sibling = -15 stalled = 10 [state] ledger = "~/.local/state/plex-reaper/ledger.db" cache = "~/.cache/plex-reaper/scan.json" cache_ttl_hours = 12 disk_path = "/media"