https://github.com/josh/trakt-plex-sync
Sync Trakt history to Plex library
https://github.com/josh/trakt-plex-sync
plex python trakt
Last synced: over 1 year ago
JSON representation
Sync Trakt history to Plex library
- Host: GitHub
- URL: https://github.com/josh/trakt-plex-sync
- Owner: josh
- License: mit
- Created: 2021-07-29T20:40:43.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2025-04-07T15:35:28.000Z (over 1 year ago)
- Last Synced: 2025-04-07T16:42:04.814Z (over 1 year ago)
- Topics: plex, python, trakt
- Language: Python
- Homepage:
- Size: 263 KB
- Stars: 6
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# trakt-plex-sync
While [Trakt VIP](https://trakt.tv/vip) and [Plex Pass](https://trakt.tv/a/plex-pass) have [a cool feature to record Plex watches to Trakt](https://blog.trakt.tv/plex-scrobbler-52db9b016ead), 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