/trakt-plex-sync

Sync Trakt history to Plex library

Primary LanguagePythonMIT LicenseMIT

trakt-plex-sync

While Trakt VIP and Plex Pass have a cool feature to record Plex watches to Trakt, there isn't an easy way to sync other watch history back to Plex. This little script does just that.

Setup

Design to run via GitHub Actions. To get started, Fork this repository.

Then set a bunch of Repository secrets for the following:

  • TRAKT_CLIENT_ID: Trakt OAuth Client ID
  • TRAKT_CLIENT_SECRET: Trakt OAuth Client Secret
  • TRAKT_ACCESS_TOKEN: Initial Trakt API access token
  • TRAKT_REFRESH_TOKEN: Initial Trakt API refresh token
  • GH_TOKEN: Needs permission to update "Repository secrets" to keep TRAKT_ACCESS_TOKEN: refreshed
  • PLEX_USERNAME: Plex email or username
  • PLEX_PASSWORD: Plex password
  • PLEX_SERVER: Plex server name
  • PLEX_TOKEN: Plex server token