Sign inSign up

cplieger/tautulli-remap

By cplieger

•Updated about 22 hours ago

Fix broken Tautulli watch history after reorganizing your Plex libraries

Image
Developer tools
Databases & storage
0

10K+

cplieger/tautulli-remap repository overview

⁠tautulli-remap

tautulli-remap reconnects your Tautulli watch history and statistics to the right movies and shows after you move, re-add or reorganize your Plex libraries. It updates Tautulli only, and never changes your Plex library or your files.

⁠What it does

tautulli-remap keeps your Tautulli history attached to your library, in four ways:

  • Finds every history entry that points at a movie or show Plex no longer knows.
  • Matches each one to your library by its TMDB, TVDB, IMDb or Plex metadata ID, then by title and year.
  • Repairs every season and episode of a show once it finds the show.
  • Previews every change by default, and backs up Tautulli before it writes.

It can run once, once a day, or whenever your own scheduler asks.

⁠Who it is for

tautulli-remap is built for people who run Tautulli beside a Plex Media Server and have moved files, re-added content or rebuilt a library. Plex then gives those items new internal IDs, called rating keys, while Tautulli keeps the old ones. It covers movie and TV libraries, not music or photos. Without it, you would open each broken item from Tautulli's history and click Fix Match on its page, one item at a time.

You need a Tautulli instance and its API key, and a Plex Media Server and a Plex token for it.

tautulli-remap is free software under the GPL-3.0-or-later license.

⁠Pull

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.

⁠Quick start

# 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

    # Put these four values in a .env file beside this file before the first start.
    environment:
      - TAUTULLI_URL  # from .env, the address you open Tautulli at, such as http://192.0.2.10:8181
      - TAUTULLI_API_KEY  # from .env, the API key on Tautulli's Settings, Web Interface page
      - PLEX_URL  # from .env, the address you open Plex at, such as http://192.0.2.10:32400
      - PLEX_TOKEN  # from .env, find it with https://support.plex.tv/articles/204059436-finding-an-authentication-token-x-plex-token/
      - "REMAP_INTERVAL=24h"  # a pass at start, then once a day. "off" runs a pass only when you trigger one
      - "DRY_RUN=true"  # preview only. Set it to false to apply the changes

⁠Documentation

⁠License

GPL-3.0-or-later. See LICENSE⁠. The image carries the license text of every bundled component under /usr/share/licenses/.

Tag summary

Content type

Image

Digest

sha256:63a981290…

Size

3.7 MB

Last updated

about 22 hours ago

docker pull cplieger/tautulli-remap