nicholasodonnell / usharr

Effortlessly maintain a streamlined movie library by removing unwanted movies from Radarr / Plex.
GNU General Public License v3.0
8 stars 0 forks source link

Improve how watch history is synced from Tautulli #45

Closed nicholasodonnell closed 5 months ago

nicholasodonnell commented 6 months ago

Description

The way watch history is synced today is not optimal. For reference, during a partial sync the following happens:

  1. Each movie title is searched in every Tautulli library for the library item
  2. Each matching library item is mapped to get the watched date / status

Desired Behavior

Instead, the following should happen:

  1. When a new movie is sycned, get and store the rating_key using Tautulli's get_library_media_info API
  2. During a partial sync, search for watch history using Tautulli's get_metadata API

Additional Context

No response