RepositoryTypeScript
bitr8

bitr8/agregarr-dev

Active fork of Agregarr: sync performance fixes, placeholder lifecycle improvements, and open upstream PRs. Docker image at bitr8/agregarr.

119stars
12forks
13issues
2views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: agregarr

#1 Repository of the week

1
TINIX TRENDING·Topic: overlays

#1 Repository of the week

2
TINIX TRENDING·Topic: media-management

#2 Repository of the week

Agregarr (bitr8 fork)

Latest release Docker pulls License

Active fork of Agregarr packaging performance fixes, placeholder lifecycle improvements, and open upstream PRs into a single Docker image. Available as bitr8/agregarr on Docker Hub.

[!TIP] Latest release: v2.6.0 — episode-file quality badges, fixed season poster grids, and FlixPatrol Top 10 collections working again. Full release notes.

Docker Image

Available on Docker Hub as bitr8/agregarr.

TagWhat it tracks
:latestStable releases. Recommended for most users.
:2.6.0 (etc.)Pinned to a specific release.
:developBleeding edge. Builds on every push to develop, may break.

Multi-arch — release tags support amd64 and arm64 (Apple Silicon, Raspberry Pi 4+). The :develop tag builds amd64 only.

Switching from upstream? Replace the image line in your existing compose file. Config volumes are compatible.

-    image: agregarr/agregarr:latest
+    image: bitr8/agregarr:latest

Compose example

services:
  agregarr:
    image: bitr8/agregarr:latest
    container_name: agregarr
    volumes:
      - /path/to/config:/app/config
      - /path/to/placeholder/movies:/data/movies # Optional: Coming Soon
      - /path/to/placeholder/tv:/data/tv # Optional: Coming Soon
    environment:
      - TZ=Australia/Sydney
      - PUID=1000 # Your host user ID (run `id -u`)
      - PGID=1000 # Your host group ID (run `id -g`)
      - UMASK=022
    ports:
      - 7171:7171
    restart: unless-stopped

[!WARNING]

File permissions: You must set PUID and PGID to match the user that owns your media directories. Without these, the container runs as root and creates directories with restrictive permissions — which breaks imports in Sonarr, Radarr, and other apps that run as a non-root user. On Unraid, use PUID=99 and PGID=100.

For general Agregarr configuration (services, collections, overlays etc.), see the upstream docs — note that they reference the upstream image, not this fork.

Relationship to upstream

This fork tracks upstream Agregarr and stays GPL-3.0. Changes that fit upstream go back as PRs (46 merged, 13 open). Fork-only features are documented separately — they rely on behaviour or trade-offs upstream may not want to adopt.

Fork-Only Features

Two problem areas drove most of these changes: sync performance at scale (40+ collections, 10k+ items) and placeholder lifecycle gaps that leave orphaned entries in Plex. Early groundwork for Jellyfin support is underway.

Dashboard Sync Progress Cards

Both collection and overlay syncs get unified side-by-side dashboard cards with live progress, stats, ETA, and start/stop controls. Cards are sticky -- they show last completed results when idle, and display "Waiting for..." when queued behind another job.

Collection Sync Dashboard

Performance

Upstream Agregarr makes individual API calls per item, per rating source, per cache miss. With 40+ collections and 10k+ items, syncs take hours and hammer external APIs. These changes reduce that to minutes.

FixWhyImpact
Batch IMDb PrefetchUpstream fetches IMDb ratings one item at a timeThousands of API calls reduced to tens
Adaptive TTL CachingAll cached ratings expire at the same fixed intervalNew releases: 12h, older content: up to 30 days
Configurable Rating CacheNo way to tune cache durationratingsCacheMaxDays in settings.json (default: 30)
Collection Sync CachegetAllCollections() called on every loop iterationCached with mutation-based invalidation. Saves ~25-30s
Batch Overlay MetadataPlex metadata fetched one item at a timeBatches of 200 per API call. Falls back on failure
FlixPatrol CloudflareSolverHardcoded browser-spoofing headers stopped workingUses Playwright-based solver, same as Letterboxd
WAF Solver Timeout FixIMDb pages never reach networkidle, WAF solve hangsUses /chart/top/ for token acquisition, load wait
AniList Retry CapparseInt NaN bug causes infinite tight retry loopsCapped at 5 attempts
Release Date TTL CapStale cache shows wrong overlay for new releasesItems within 3 days of release: max 2h TTL
Sync Status FixLarge multi-source collections stuck as "pending"Self-heal for stale ratingKeys + item-level 404 resilience
TMDB Random Graceful FailNo random collection throws, blocks entire syncWarns and skips, existing collection preserved

Persistent TMDB Resolution Cache -- Letterboxd collections require resolving titles to TMDB IDs. Upstream re-resolves every item on every sync (6 TMDB API calls each). This caches results in SQLite with adaptive TTL.

MetricFirst Sync (cold cache)Second Sync (warm cache)
TMDB API calls~33,0000
Resolution time~42 min< 1 sec (all cache hits)
Cache entries5,656 created (53 negative)5,656 served

Plain HTTP for Letterboxd (letterboxdUsePlainHttp) -- Upstream launches headless Chromium (Playwright) for every Letterboxd page fetch. This was added to bypass Cloudflare, but Letterboxd list pages return full HTML without JS rendering. Plain HTTP (axios) is sufficient.

PlaywrightPlain HTTP
Per page~10,500ms~280ms
142 pages~25 min~40 sec
Cloudflare blocks00

Enable via Settings > Sources > Fetching Settings in the UI. Defaults to off (Playwright) for safety. Flip back if Cloudflare starts blocking.

Plain HTTP for FlixPatrol (flixpatrolUsePlainHttp) -- Same approach as Letterboxd. FlixPatrol top 10 pages return full HTML without Cloudflare challenges. Applies to all 3 fetch paths (platform top 10, country list, platform discovery).

Enable via Settings > Sources > Fetching Settings in the UI. Defaults to off (Playwright) for safety.

Placeholder Lifecycle Fixes

Upstream placeholder cleanup has gaps that leave orphaned entries in Plex and don't respond to filter changes.

Retroactive Filter Application -- Upstream filters only apply at creation time — adding filters later has no effect on existing placeholders. This fork evaluates existing placeholders against the current filter config during cleanup and removes those that no longer pass. Rating filters are skipped since unreleased content has no ratings.

Self-Healing for Stuck Records -- If a placeholder file is deleted externally (disk issue, manual cleanup), the DB record blocks re-creation. This fork detects missing files and clears the stale record so the next sync can recreate it. Only triggers on confirmed ENOENT, not transient filesystem errors.

Direct Plex Deletion -- Plex ignores empty directories during library scans, so scanLibrary() + emptyTrash() won't clean up stale entries after a placeholder file is removed. This fork deletes stale items directly via DELETE /library/metadata/{ratingKey}, matching by exact file path. Falls back to scan+trash when direct deletion can't find matches.

TV Episode Cleanup -- TV placeholders create an S00E00 episode that persists in Plex after the placeholder file and DB record are cleaned up. Upstream cleanup queries shows, not episodes, so TV paths never match. This fork pre-resolves episode ratingKeys before file deletion and navigates show > Season 00 > Episode 0 to delete stale episodes during config cleanup.

Sonarr Folder Naming -- Agregarr creates placeholders at /tv/Show (2024)/ but Sonarr uses /tv/Show (2024) [imdbid-tt1234567]/. When real content arrives, Plex sees them as different shows, leaving orphaned entries. This fork extracts the folder name from Sonarr's series path. Falls back to standard naming if the show isn't in Sonarr.

Download Status Awareness -- Upstream doesn't check whether content has already been downloaded in Radarr/Sonarr. This fork queries *arr download status in batch, skips placeholder creation for items already downloaded, and uses download status as a cleanup signal. Prevents unnecessary placeholders for content that's about to arrive.

Post-Sync Hub Verification -- After collection sync completes, queries each filtered hub and applies missing trailer-placeholder labels to any items that slipped through. A safety net that catches label leaks regardless of which pipeline stage failed to apply them.

TV Placeholder Label Cleanup -- Upstream only removes the trailer-placeholder label during full sync's discovery path. Quick sync (when real content arrives between full syncs) cleaned up files and DB records but left the label on the Plex show, hiding it from Recently Added. This fork centralises label removal into all cleanup paths and adds a tvdbId fallback from the DB when marker files lack it.

TV Placeholder Real Content Detection -- Upstream's TV placeholder discovery never checks whether real content has arrived — when a Plex item exists for a marker, it always keeps it as a placeholder. Movies have this detection, but TV skips it entirely. This fork adds the same Plex metadata check: if the show has Season 1+ alongside Season 00, cleanup triggers. Sonarr download status is a secondary signal. Also fixes a truthy-empty-array bug where Metadata || Directory picks an empty array over a populated one, and makes label removal best-effort so transient Plex errors don't block cleanup.

Coming Soon Improvements

Prefer *arr Release Dates -- Upstream's TMDB enrichment unconditionally overwrites Radarr/Sonarr release dates, even when the *arr source has more accurate data for monitored content. This fork preserves *arr dates and only backfills from TMDB when a field is missing (e.g., Radarr has digitalRelease but no physicalRelease, TMDB fills the gap). Scoped to *arr-sourced items only -- Trakt, TMDB, and Letterboxd sources still get TMDB dates as before. Logs a warning when *arr and TMDB dates diverge by more than a week, so stale Radarr entries are visible in the logs.

Announced Movies Without Dates -- Upstream silently drops Radarr movies that have no release date fields at all (common for early announcements with status: announced). These items never reach TMDB enrichment, so TMDB can't provide dates either. This fork lets them through to enrichment, where TMDB can fill in theatrical or digital dates. Items that are still dateless after enrichment are filtered out by the existing post-enrichment date window check.

Root Folder Filtering -- Coming Soon monitored settings now include optional root folder dropdowns, populated from Radarr/Sonarr. Movies filter by path prefix, TV shows by rootFolderPath equality. Useful when multiple libraries point to different root folders on the same *arr instance.

Episode Media Scanning

Plex's show-level metadata doesn't always reflect what's on disk -- a show with one 4K episode out of 99 can report as "4K", or a fully upgraded library can still show "1080p". This fork scans actual episode files and aggregates the results with majority vote.

Enable per library: Overlays > library config > "Use episode files for quality badges" (show libraries only).

Episode scanning toggle

AspectBefore (Plex metadata)After (episode scanning)
Resolution badgeWhatever Plex reports for the showMajority of actual episode files
HDR/DV badgeOften wrong or missingTrue if 50%+ of episodes have it
Audio codecShow-level guessMost common across episodes
Data sourceepisodeMediaSource: 'show'episodeMediaSource: 'aggregated'

How it works: Two-tier scan -- fetches the episode list (~19s for 21K episodes), then only batch-fetches stream detail (HDR, DV, bitDepth) if your templates use those fields (~133s). Results are cached in SQLite for 7 days with hash-based invalidation, so subsequent syncs complete in seconds.

Season 0 specials are excluded from aggregation (they're usually low-quality extras). Existing overlay templates benefit immediately -- aggregated values replace the primary context fields (resolution, hdr, dolbyVision, etc.). Raw show-level values are preserved as showResolution, showHdr, etc.

New template variables: episodeCount, episode4kPercent, episodeHdrPercent, episodeDvPercent, and all show* raw fields. Available in both variable text and application conditions.

Additional Overlay Variables

TV Season Counts -- Two new variables for TV show overlays: totalSeasons (from TMDB) and seasonsAvailable (seasons in your Plex library). Useful for overlays like "Season 2 of 5" or conditional overlays on incomplete shows. Available as both template variables and condition fields. (Contributed by Bergasha)

Upstream PRs

Open

PRDescriptionDepends On
#613Don't dismiss modals when clicking portaled children-
#607Sort TMDB franchise parts by release date-
#606Self-heal stale collectionRatingKey during label fallback-
#605Invalidate stale AWS WAF tokens and add solve backoff-
#604Quick sync exclusion bypass fix-
#599Apply mutual exclusion to filtered hub collections-
#596Detect real content in TV placeholder cleanup via Plex-
#595Fix jobs page crash on unparseable cron expressions-
#594Sanitise poster filenames to match validation allowlist-
#526Retroactive placeholder filter evaluation during cleanup-
#516Check *arr download status + Sonarr folder naming-
#498Deduplicate hub identifiers to prevent convergence failures-
#492Title fallback for TV placeholders without TMDB GUID-

Fork-Only (No Upstream PR Planned)

FeatureWhy Fork-Only
Direct Plex API deletion for stale placeholdersRequires "Allow media deletion" in Plex
Post-sync hub verification for label leaksSafety net for fork's label-based filtering

Note: TV placeholders created before the Sonarr folder naming fix may not match Sonarr's naming convention. If orphaned placeholders appear after real content arrives, delete the placeholder folder and let the next sync recreate it correctly.

Merged (46 PRs)
PRDescription
#579Refresh Plex shared-server cache at start of user filter batches
#578Clean up legacy placeholder edition titles during sync
#567Fix Plex webhook multer multipart parsing
#556Remove date-based overlays when content is downloaded
#547Back off on IMDb Top 250 cache refresh failure
#515Remove vm2 sandbox dependency
#514Fix SVG sanitisation bypass
#513Fix export path traversal
#504Support Maintainerr v3 API (mediaServerId rename)
#503Fix TV placeholders leaking into filtered hubs
#491Handle Plex returning TV seasons as Children.Directory
#481Guard splice in arrangeCollectionItemsInOrder
#483Parallelise collection membership check in overlay test
#482Index MAL IDs for constant-time lookups
#467Scan all placeholder-enabled libraries for discovery
#459Pass rating filters and seasonGrabOrder to multi-source collections
#456Separate placeholder filters independent of auto-request filters
#454Resolve Letterboxd items via film page TMDB links (#448)
#453Re-apply placeholder markers during global discovery (#414)
#452Disambiguate TMDB person search for person spotlight
#450Use episode air date for TV recently released filtered hubs
#446Add date format options for US and UK/AU locales
#445Persist applyOverlaysDuringSync for pre-existing collections
#444Use correct Plex API endpoint for collection title updates
#413Pass options to ExternalAPI constructor correctly
#405Fix Letterboxd title extraction from data-item-name
#400Empty Plex trash after placeholder cleanup
#387Skip date filtering for non-Coming-Soon with includeAllReleasedItems
#358IMDb Top 250 English Movies collection type
#356Handle 404 gracefully when deleting hub items
#350Validate SVG icon dimensions and file type
#349Don't double-estimate digital release dates
#348Fix scheduler startNow immediate sync and deadlock bugs
#345Multi-source label regex for collection matching
#340Handle Jellyfin trickplay directories during cleanup
#332Trigger Plex scan after placeholder cleanup
#321Surface per-collection sync errors to UI
#306Uniform scaling for non-standard poster aspect ratios
#305Downgrade library mismatch message to debug level
#304Sync networksCountry to sources array on change
#303Fetch Maintainerr collections in overlay test route
#302Return episodeNumber from fetchReleaseDateInfo
#300Harden API clients and file operations
#282Sanitize error responses
#278Filter daily shows from Coming Soon collections
#277TMDB poster caching and race condition fixes

License

GPL-3.0, same as upstream.

Credits

Built on Agregarr.

Similar Projects

Discover other similar projects and AI models.

RepositoryTypeScript
seerr-team/seerr

Open-source media request and discovery manager for Jellyfin, Plex, and Emby.

13.4k
Nov 30, 2026
RepositoryTypeScript
Maintainerr/Maintainerr

Looks and smells like Seerr, does the opposite. A library maintenance tool for Plex, Jellyfin and Emby.

2.5k
Dec 1, 2026
RepositoryPHP
causefx/Organizr

HTPC/Homelab Services Organizer - Written in PHP

5.8k
May 19, 2026
RepositoryShell
SimpleHomelab/Docker-Traefik

Docker media and home server stack with Docker Compose, Traefik, CrowdSec, Google OAuth2/Authelia, and LetsEncrypt. Built with Deployrr and UDMS guides/videos.

3.4k
Nov 8, 2026
RepositoryShell
Cloudbox/Cloudbox

Ansible-based solution for rapidly deploying a Docker containerized cloud media server.

2.4k
Mar 15, 2023
RepositoryShell
RandomNinjaAtk/arr-scripts

Extended Container Scripts - Automation scripts to make life easier!

1.5k
Oct 1, 2026
RepositoryGo
mescon/Muximux

A self-hosted homelab dashboard with an optional built-in reverse proxy that makes stubborn apps work in iframes

1.2k
Nov 25, 2026
RepositoryPython
Boerderij/Varken

Standalone application to aggregate data from the Plex ecosystem into InfluxDB using Grafana as a frontend

1.2k
Aug 7, 2024
RepositoryPython
Luctia/ezarr

Ezarr aims to make it as easy as possible to setup an entire Servarr/Jackett/BitTorrent/Usenet/PleX/Jellyfin mediacenter stack using Docker

1.1k
Aug 11, 2026