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.
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 IDTRAKT_CLIENT_SECRET
: Trakt OAuth Client SecretTRAKT_ACCESS_TOKEN
: Initial Trakt API access tokenTRAKT_REFRESH_TOKEN
: Initial Trakt API refresh tokenGH_TOKEN
: Needs permission to update "Repository secrets" to keepTRAKT_ACCESS_TOKEN
: refreshedPLEX_USERNAME
: Plex email or usernamePLEX_PASSWORD
: Plex passwordPLEX_SERVER
: Plex server namePLEX_TOKEN
: Plex server token