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, user, watched, collection, and ratings settings.
    You can choose to sync all data or just new. Click Save when you’re ready.


Working Now

  • Watched history syncs from Plex to Trakt (option to sync all plays).
  • Collection sync (with metadata) from Plex to Trakt.
  • Ratings sync.
  • 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.
  • Watchlist sync.

Known Issues

  • Plex sync assumes your Plex media server has remote access on port 32400.
  • 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,
7 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.

1 Like

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)

2 Likes

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.

Screenshot 2025-05-30 at 10.21.47 AM

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.

Uggh…does this sync for every user activity or just for the one that is logged in to the plex sync? Also…if I decide I don’t want to use the sync how do I “disconnect” it and go back to just using the scrobbler?

Did you ever solve this? I’m wanting to try this out but not exactly thrilled about not being able to roll back to just the webhook again.

For now, you can just set the plex server back to blank and save the page. I will add a “disconnect” button to the page this week to truly unlink your Plex connection.

Yes, it should be only for the authed user. At least that is how it’s worked in my testing so far. Syncs can easily be undone, so just let me know if you are seeing data for other users.

Correct, this doesn’t sync collection yet. I do plan on adding that though, with metadata attached.

1 Like

I’m having the same problem. I also removed Trakt from the list of Authorized Devices within Plex settings. Now I can’t reach https://trakt.tv/settings/plex anymore (500 error). I want to use webhooks, how do I resolve this ?

I’ll have a fix out later in the week. Just to confirm, you removed Trakt from within Plex media center, correct?

I will also have a button disconnect your Plex account from the Trakt settings page.

1 Like

Alright thanks. It was removed from here https://app.plex.tv/desktop/#!/settings/devices/all.

It would be nice if this also eventually sync collected items.

I plan to add collection sync with metadata attached. This requires an update to our internal Trakt importer as well, so it will be part of the same update.

1 Like

I just pushed some updates to the Plex sync.

  • Sync multiple plays!
  • Improved matching for non Plex agents (old TVDB agents for example).
  • Disconnect Plex from the Trakt settings.
  • Improved UI to indicate if you want to import your full history (or only new items) and if you want multiple plays (or only the most recent play)
  • Fixed a 500 error if you disconnect from within the Plex media center settings

Updated Settings UI

1 Like