{"id":21827158,"url":"https://github.com/josh/trakt-plex-sync","last_synced_at":"2025-04-14T05:43:01.846Z","repository":{"id":37080952,"uuid":"390845459","full_name":"josh/trakt-plex-sync","owner":"josh","description":"Sync Trakt history to Plex library","archived":false,"fork":false,"pushed_at":"2025-04-07T15:35:28.000Z","size":269,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-07T16:42:04.814Z","etag":null,"topics":["plex","python","trakt"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/josh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-07-29T20:40:43.000Z","updated_at":"2025-04-07T15:35:31.000Z","dependencies_parsed_at":"2024-01-04T21:27:32.719Z","dependency_job_id":"c882d107-e072-4457-b2d9-754bd6ca243a","html_url":"https://github.com/josh/trakt-plex-sync","commit_stats":{"total_commits":135,"total_committers":3,"mean_commits":45.0,"dds":0.3555555555555555,"last_synced_commit":"91a900dfe60d9d7ec7dc917754aa1323186064eb"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josh%2Ftrakt-plex-sync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josh%2Ftrakt-plex-sync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josh%2Ftrakt-plex-sync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josh%2Ftrakt-plex-sync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/josh","download_url":"https://codeload.github.com/josh/trakt-plex-sync/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248830420,"owners_count":21168272,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["plex","python","trakt"],"created_at":"2024-11-27T18:12:22.881Z","updated_at":"2025-04-14T05:43:01.816Z","avatar_url":"https://github.com/josh.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# trakt-plex-sync\n\nWhile [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.\n\n## Setup\n\nDesign to run via GitHub Actions. To get started, Fork this repository.\n\nThen set a bunch of Repository secrets for the following:\n\n- `TRAKT_CLIENT_ID`: Trakt OAuth Client ID\n- `TRAKT_CLIENT_SECRET`: Trakt OAuth Client Secret\n- `TRAKT_ACCESS_TOKEN`: Initial Trakt API access token\n- `TRAKT_REFRESH_TOKEN`: Initial Trakt API refresh token\n- `GH_TOKEN`: Needs permission to update \"Repository secrets\" to keep `TRAKT_ACCESS_TOKEN`: refreshed\n- `PLEX_USERNAME`: Plex email or username\n- `PLEX_PASSWORD`: Plex password\n- `PLEX_SERVER`: Plex server name\n- `PLEX_TOKEN`: Plex server token\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosh%2Ftrakt-plex-sync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjosh%2Ftrakt-plex-sync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosh%2Ftrakt-plex-sync/lists"}