Plex Sync BETA

I’ve been working on a new Plex Sync and the initial version is ready for VIP beta testers! This uses the Plex API to sync data from your Plex media server to Trakt. Using the API allows us to sync your past data, and should allow us to send data to Plex.

:construction: This feature is very much a work in progress, but episode and movie sync is working quite well with my Plex server and it’s time to get more testing and validation from you all.

Prerequisites

  • Make sure you have Plex Media Server installed and libraries setup for your shows and movies.
  • I recommend using the Plex Series and Plex Movie metadata agents since they have the most complete ID coverage. ID matching is going to work way better than matching on the title.
  • Make sure your server allows remote access on port 32400.

Setup

  1. Go to the Plex Sync settings
  2. Sign in to Plex and authorize the Trakt app. The red Security Alert is added by Plex and I am still trying to figure out how to display a more normal message. For now, you will just need to ignore this message and sign in to link your Plex account to Trakt. The IP address will be from one of the Trakt servers.

  3. Select your Plex media server and click Save. Confirm if you want to sync your past data.



Working Now

  • Watched history syncs from Plex to Trakt.
  • Syncs run automatically every hour.
  • Syncs can be undone, so there is less risk when trying this feature out.

In Progress

  • Watched history sync from Trakt to Plex.
  • Collection sync (with metadata) from Plex to Trakt.
  • Ratings sync.
  • Watchlist sync.

Known Issues

  • Plex sync assumes your Plex media server has remote access on port 32400.
  • On the first data sync, only the most recent play is synced for watched movies and episodes. Moving forward, it will pick up all plays.
  • We recommend using the Plex Series and Plex Movie metadata agents in your Plex library shares. This gives the most complete ID matches.
  • You might need to re-scan your library items to pick up any missing or changed metadata,
2 Likes

Is there any way to change the port number?

Will running this alongside existing Plex scrobbling result in duplicate watched entries?

I have only allowed the standard plex port for now. What port do you use and what is the reason for something custom?

Most likely yes, unless it has the same watched date then it would skip increasing the duplicate. However, I’m guessing it will be different and will likely create a duplicate if you’re running both.

A workaround for now would be to disable the “scrobble” part of the webhook so you can still get the “now playing” status, but the new Plex sync would pick up the actual play within an hour.

I will work more on this and the eventual plan is to make both work together better, or possibly replace the webhook all the together.

I run multiple Plex servers so can’t have them on the same port. There’s probably also a fair number of people who are behind some kind of proxy or running Plex on a VPS which most likely won’t have 32400 as the assigned port.

Unfortunately that won’t work for me because then I’ll miss out on those not using port 32400.

Hopefully it won’t get disabled / replaced until it’s fully configurable.

I’d also not really like to see it being disabled. My Plex server is not accessible remotely (I have a reverse proxy set up, but it’s locked down to internal network traffic only), as I only use Plex internally and don’t want/need to have it exposed.
So the only way to get data to Trakt, from Plex, is when Plex sends the data (hence the webhook being usefull)

1 Like

I’m assuming both will co-exist, since the webhook serves a different purpose like you said.

As for the port, I just used the default for now but we’d likely allow non standard in the future, or at least have steps how to proxy or forward.

1 Like

I tried this and want to switch back to using just Webhooks until this feature matures (don’t like that it takes an hour to sync). I didn’t see an option to “log out” of the connected Plex account so instead I removed Trakt from the list of Authorized Devices within Plex settings. Now I can no longer reach the entire Plex Sync settings tab within Trakt and get this 500 error.

I don’t want to see webhook disabled either. Webhook works perfectly and same as other user, my server is not accessible remotely and I don’t want to give access to it.

I’ve synced two episodes and it seems to be pretty immediate.