Fix broken Tautulli watch history after reorganizing your Plex libraries
10K+
Fix broken Tautulli watch history after reorganizing your Plex libraries.
When you reorganize your Plex libraries (move files, re-add content, change folder structure), Plex assigns new internal IDs to your media. This breaks Tautulli's watch history: it can no longer link history entries to the right items. This tool automatically finds the correct new IDs and updates Tautulli's database, preserving your watch history and statistics.
For each stale entry, it finds the correct current rating key in Plex using a chain of strategies, most precise first:
thetvdb agent.REMAP_INTERVAL set to a Go duration like 24h for a built-in timer, REMAP_INTERVAL=off for resident-idle (stays healthy, awaits docker exec ... tautulli-remap trigger), or tautulli-remap trigger for a one-shot pass that reports its outcome via its exit code.DRY_RUN=false, so you can always preview first.health, httpx, plexapi, scheduler, envx, slogx, runesafe, keyenc) and golang.org/x/sync, minimizing supply-chain risk.nonroot on gcr.io/distroless/static-debian13 with no shell or package manager.docker pull cplieger/tautulli-remap:latest
Also published to ghcr.io/cplieger/tautulli-remap with identical images and tags. Release versions are tagged vX.Y.Z alongside latest.
# Example compose for tautulli-remap. See the README for all configuration options and hardening.
services:
tautulli-remap:
image: ghcr.io/cplieger/tautulli-remap:latest
container_name: tautulli-remap
restart: unless-stopped
environment:
TAUTULLI_URL: "http://tautulli:8181"
TAUTULLI_API_KEY: "your-tautulli-api-key" # required
PLEX_URL: "http://plex:32400"
PLEX_TOKEN: "your-plex-token" # required
REMAP_INTERVAL: "24h" # Go duration; "off" = resident-idle
DRY_RUN: "true" # set to false to apply changes
GPL-3.0-or-later. See LICENSE. The image carries the license text of
every bundled component under /usr/share/licenses/.
Content type
Image
Digest
sha256:5730d3321…
Size
3.7 MB
Last updated
7 minutes ago
docker pull cplieger/tautulli-remap